Skip to content

Commit e4fa977

Browse files
committed
meh
1 parent e04618a commit e4fa977

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

betty/test_utils/coverage.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,15 @@ def _auto_children(self) -> None:
186186
for child in self.children
187187
if isinstance(child, Module)
188188
}
189-
# @todo
190-
# raise RuntimeError([self.testable_name, child_testable_names])
191189
for module_info in pkgutil.iter_modules(
192190
[str(self.testable_file_path.parent)]
193191
):
194192
module_testable_name = f"{self.testable_name}.{module_info.name}"
195-
if module_testable_name not in child_testable_names:
196-
# @todo
197-
if self.testable_name == "betty":
198-
pass
193+
if (
194+
module_testable_name not in child_testable_names
195+
and _name_to_path(module_testable_name)
196+
not in get_coveragerc_ignore_modules()
197+
):
199198
self._children = {
200199
*self._children,
201200
Module(module_testable_name),

betty/tests/test_coverage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
),
4343
},
4444
),
45+
InternalModule("betty.test_utils"),
4546
InternalModule("betty.tests"),
4647
},
4748
)

0 commit comments

Comments
 (0)