We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ceafe2 commit 82effe4Copy full SHA for 82effe4
1 file changed
tests/shapiq/tests_unit/test_public_api.py
@@ -78,7 +78,7 @@ def test_all_concrete_subclasses_in_all(module_path: str, base_path: str, label:
78
exported = set(module.__all__)
79
missing = concrete - exported
80
81
- pkg_init = f"src/shapiq/{module_path.split('.')[-1]}/__init__.py"
+ pkg_init = f"src/shapiq/{module_path.rsplit('.', maxsplit=1)[-1]}/__init__.py"
82
assert not missing, (
83
f"Concrete {label} subclasses not listed in {module_path}.__all__: "
84
f"{missing}. Add them to {pkg_init}."
0 commit comments