Skip to content

Commit

Permalink
unittest for exclude_h1 in heading.enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
TimChaubet-I4U committed Nov 24, 2023
1 parent 82c1da8 commit 2ebfbd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_heading.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def test_enumeration():
heading.enumerate()
assert str(heading.heading) == "<h2>2.0.1 _dummy_test</h2>"

heading = get_heading_class("<h2>_dummy_test_exclude_h1</h2>")
heading.section_numbering = [2, 1, 1, 0, 0, 0]
heading.enumerate(exclude_h1=True)
assert str(heading.heading) == "<h2>1.1 _dummy_test_exclude_h1</h2>"

def test_span_addition():

Expand Down

0 comments on commit 2ebfbd6

Please sign in to comment.