Skip to content

Commit ba07fdc

Browse files
committed
test(vc105): add unit tests for no-absolute-import-date check
1 parent 25ab658 commit ba07fdc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shared/connector_linter/tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Severity,
1111
)
1212
from connector_linter.registry import CheckRegistry
13+
from connector_linter.runner import _import_checks_modules
1314

1415

1516
@pytest.fixture()
@@ -18,6 +19,7 @@ def _clean_registry():
1819
1920
Tests that register throwaway checks won't leak into other tests.
2021
"""
22+
_import_checks_modules() # ensure all real checks are loaded before saving
2123
saved = dict(CheckRegistry._checks)
2224
yield
2325
CheckRegistry._checks.clear()

0 commit comments

Comments
 (0)