Squash-merge lib-standardisation: adopt repo standards across packaging, tooling, docs, and CI. - standardize pyproject.toml (canonical packaging, lint config, extras, GSDFC pydoclint) - add py.typed marker, modernize type hints and Google-style docstrings - nest generated docs under docs/lib and docs/mcp; add hand-written wiki - adopt standard Type A PyPI CI pipeline (tag==version guard + quality gate) - promote generated CHANGELOG.md; bump version to 0.0.7
22 lines
478 B
Python
22 lines
478 B
Python
import pytest
|
|
|
|
from docforge import GriffeLoader
|
|
|
|
|
|
def test_load_project_raises_on_missing_module_by_default():
|
|
loader = GriffeLoader()
|
|
|
|
with pytest.raises(ImportError):
|
|
loader.load_project(["nonexistent.module", "sys"])
|
|
|
|
|
|
def test_load_project_skips_missing_modules_when_enabled():
|
|
loader = GriffeLoader()
|
|
|
|
project = loader.load_project(
|
|
["nonexistent.module", "sys"],
|
|
skip_import_errors=True,
|
|
)
|
|
|
|
assert "sys" in project.modules
|