@@ -27,13 +27,13 @@ def references(path):
|
||||
return any(needle in body for needle in NEEDLES)
|
||||
|
||||
|
||||
def test_only_main_imports_the_acceptance_package():
|
||||
def test_only_lifespan_imports_the_acceptance_package():
|
||||
importers = [
|
||||
path.relative_to(PACKAGE_ROOT).as_posix()
|
||||
for path in source_files({".py"})
|
||||
if references(path)
|
||||
]
|
||||
assert importers == ["main.py"]
|
||||
assert importers == ["lifespan.py"]
|
||||
|
||||
|
||||
def test_no_template_or_static_asset_mentions_the_package():
|
||||
|
||||
Reference in New Issue
Block a user