Skip to content

Commit

Permalink
Fix tests and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Aug 1, 2022
1 parent f45fdb7 commit 96366eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_plantuml_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def test_line_highlighting(do_fence_test):

def test_svg_and_listing(do_fence_test):
with do_fence_test('{ .plantuml svg+listing }') as compiled:
assert [e.tag for e in compiled.document.xpath('/html/body/div/div/*')] == ['svg', 'pre']
assert [e.tag for e in compiled.document.xpath('/html/body/div/div/*')] == ['svg', 'div']


def test_listing_and_svg(do_fence_test):
with do_fence_test('{ .plantuml listing+svg }') as compiled:
assert [e.tag for e in compiled.document.xpath('/html/body/div/div/*')] == ['pre', 'svg']
assert [e.tag for e in compiled.document.xpath('/html/body/div/div/*')] == ['div', 'svg']


def test_prefix(do_compile_test):
Expand Down
2 changes: 1 addition & 1 deletion v7/markmin/markmin/markmin2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ def parse_table_or_blockquote(s, mtag, lineno):
# - consists '|' -> table
# - consists other characters -> blockquote
if (lineno + 1 >= strings_len or
not(s.count('-') == len(s) and len(s) > 3)):
not (s.count('-') == len(s) and len(s) > 3)):
return (s, mtag, lineno)

lineno += 1
Expand Down
2 changes: 1 addition & 1 deletion v7/navstories/navstories.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def set_site(self, site):
# Loop over all new_raw entries, checking if it matches map_key; if match: add it and delete from new_raw
if map_key in new_raw:
new.append([map_txt, new_raw[map_key]])
del(new_raw[map_key])
del new_raw[map_key]
# Add remaing new_raw entries which didn't match any map_key
new.extend([[None, new_raw[_]] for _ in sorted(new_raw)])

Expand Down

0 comments on commit 96366eb

Please sign in to comment.