Skip to content

Commit 0a6e31f

Browse files
committed
[WiP] New ToC generator based on querying the docbook XML
avoid unittest.py dep+use
1 parent 2514bc1 commit 0a6e31f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gen-toc-based-on-docbook5.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# Distributed under terms of the MIT license.
88

99
# import re
10-
import unittest
1110

1211
import lxml.etree
1312

@@ -36,7 +35,6 @@ def _process_sections():
3635
parent = section
3736
while parent is not None:
3837
tag = lxml.etree.QName(parent).localname
39-
print(tag)
4038
if tag == 'section':
4139
count_parent_section_elements += 1
4240
parent = parent.getparent()
@@ -54,6 +52,4 @@ def _process_sections():
5452

5553

5654
if __name__ == '__main__':
57-
from pycotap import TAPTestRunner
58-
suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
59-
TAPTestRunner().run(suite)
55+
MyTests().test_initial_docbook()

0 commit comments

Comments
 (0)