introspection
This commit is contained in:
12
tests/introspection/test_import_failures.py
Normal file
12
tests/introspection/test_import_failures.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from docforge import GriffeLoader
|
||||
|
||||
|
||||
def test_import_failure_does_not_crash():
|
||||
loader = GriffeLoader()
|
||||
|
||||
project = loader.load_project(
|
||||
["nonexistent.module", "sys"]
|
||||
)
|
||||
|
||||
# sys should still load
|
||||
assert "sys" in project.modules
|
||||
Reference in New Issue
Block a user