@@ -28,11 +28,9 @@ def test_package(self, parse):
28
28
assert docstring .text == "This is a docstring."
29
29
30
30
# There should be links to the children with their own page
31
- subpackages = package_file .find (id = "subpackages" )
32
- assert subpackages
33
- assert subpackages .find ("a" , string = "package.subpackage" )
34
31
submodules = package_file .find (id = "submodules" )
35
32
assert submodules
33
+ assert submodules .find ("a" , string = "package.subpackage" )
36
34
assert submodules .find ("a" , string = "package.submodule" )
37
35
38
36
# There should not be links to the children without their own page
@@ -66,7 +64,6 @@ def test_subpackage(self, parse):
66
64
assert docstring .text == "This is a docstring."
67
65
68
66
# There should be links to the children with their own page
69
- assert not subpackage_file .find (id = "subpackages" )
70
67
submodules = subpackage_file .find (id = "submodules" )
71
68
assert submodules
72
69
assert submodules .find ("a" , string = "package.subpackage.submodule" )
@@ -98,7 +95,6 @@ def test_module(self, parse):
98
95
99
96
# There should not be links to the children without their own page
100
97
assert not submodule_file .find (id = "submodules" )
101
- assert not submodule_file .find (id = "subpackages" )
102
98
assert not submodule_file .find (id = "attributes" )
103
99
assert not submodule_file .find (id = "exceptions" )
104
100
assert not submodule_file .find (id = "classes" )
@@ -177,11 +173,9 @@ def test_package(self, parse):
177
173
assert docstring .text == "This is a docstring."
178
174
179
175
# There should be links to the children with their own page
180
- subpackages = package_file .find (id = "subpackages" )
181
- assert subpackages
182
- assert subpackages .find ("a" , string = "package.subpackage" )
183
176
submodules = package_file .find (id = "submodules" )
184
177
assert submodules
178
+ assert submodules .find ("a" , string = "package.subpackage" )
185
179
assert submodules .find ("a" , string = "package.submodule" )
186
180
exceptions = package_file .find (id = "exceptions" )
187
181
assert exceptions
@@ -230,7 +224,6 @@ def test_module(self, parse):
230
224
231
225
# There should not be links to the children without their own page
232
226
assert not submodule_file .find (id = "submodules" )
233
- assert not submodule_file .find (id = "subpackages" )
234
227
assert not submodule_file .find (id = "attributes" )
235
228
assert not submodule_file .find (id = "functions" )
236
229
@@ -388,11 +381,9 @@ def test_package(self, parse):
388
381
assert docstring .text == "This is a docstring."
389
382
390
383
# There should be links to the children with their own page
391
- subpackages = package_file .find (id = "subpackages" )
392
- assert subpackages
393
- assert subpackages .find ("a" , string = "package.subpackage" )
394
384
submodules = package_file .find (id = "submodules" )
395
385
assert submodules
386
+ assert submodules .find ("a" , string = "package.subpackage" )
396
387
assert submodules .find ("a" , string = "package.submodule" )
397
388
classes = package_file .find (id = "classes" )
398
389
assert classes
@@ -445,7 +436,6 @@ def test_module(self, parse):
445
436
446
437
# There should not be links to the children without their own page
447
438
assert not submodule_file .find (id = "submodules" )
448
- assert not submodule_file .find (id = "subpackages" )
449
439
assert not submodule_file .find (id = "attributes" )
450
440
451
441
# Children without their own page should be rendered on this page,
@@ -578,11 +568,9 @@ def test_package(self, parse):
578
568
assert docstring .text == "This is a docstring."
579
569
580
570
# There should be links to the children with their own page
581
- subpackages = package_file .find (id = "subpackages" )
582
- assert subpackages
583
- assert subpackages .find ("a" , string = "package.subpackage" )
584
571
submodules = package_file .find (id = "submodules" )
585
572
assert submodules
573
+ assert submodules .find ("a" , string = "package.subpackage" )
586
574
assert submodules .find ("a" , string = "package.submodule" )
587
575
classes = package_file .find (id = "classes" )
588
576
assert classes
@@ -635,7 +623,6 @@ def test_module(self, parse):
635
623
636
624
# There should not be links to the children without their own page
637
625
assert not submodule_file .find (id = "submodules" )
638
- assert not submodule_file .find (id = "subpackages" )
639
626
assert not submodule_file .find (id = "attributes" )
640
627
641
628
# Children without their own page should be rendered on this page,
@@ -792,11 +779,9 @@ def test_package(self, parse):
792
779
assert docstring .text == "This is a docstring."
793
780
794
781
# There should be links to the children with their own page
795
- subpackages = package_file .find (id = "subpackages" )
796
- assert subpackages
797
- assert subpackages .find ("a" , string = "package.subpackage" )
798
782
submodules = package_file .find (id = "submodules" )
799
783
assert submodules
784
+ assert submodules .find ("a" , string = "package.subpackage" )
800
785
assert submodules .find ("a" , string = "package.submodule" )
801
786
classes = package_file .find (id = "classes" )
802
787
assert classes
@@ -843,7 +828,6 @@ def test_module(self, parse):
843
828
844
829
# There should not be links to the children without their own page
845
830
assert not submodule_file .find (id = "submodules" )
846
- assert not submodule_file .find (id = "subpackages" )
847
831
848
832
# Children without their own page should be rendered on this page,
849
833
# and children with their own page should not be rendered on this page.
0 commit comments