Skip to content

Commit

Permalink
fix E741 ambiguous variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Nov 4, 2024
1 parent c32eceb commit 39f2de5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ def test_nested_list():
expect = '\t<ol>\n\t\t<li>test\n\t\t<ol>\n\t\t\t<li>another one\n\t\t\t<ul>\n\t\t\t\t<li>point one</li>\n\t\t\t\t<li>point two</li>\n\t\t\t</ul></li>\n\t\t\t<li>moar item</li>\n\t\t</ol></li>\n\t</ol>'
assert result == expect

l = List('ol', indent_level=1)
l.add_item('li', 'test')
lst = List('ol', indent_level=1)
lst.add_item('li', 'test')
s1 = List('ol', indent_level=2)
s1.add_item('li', 'another one')
s2 = List('ul', indent_level=3)
s2.add_item('li', 'point one')
s2.add_item('li', 'point two')
s1.add_item('li', s2)
s1.add_item('li', 'moar item')
l.add_item('li', s1)
result = l.process()
lst.add_item('li', s1)
result = lst.process()
expect = '\t<ol>\n\t\t<li>test\n\t\t<ol>\n\t\t\t<li>another one\n\t\t\t<ul>\n\t\t\t\t<li>point one</li>\n\t\t\t\t<li>point two</li>\n\t\t\t</ul></li>\n\t\t\t<li>moar item</li>\n\t\t</ol></li>\n\t</ol>'
assert result == expect

0 comments on commit 39f2de5

Please sign in to comment.