Establish the src layout, the four Ports & Adapters layers and a smoke test. Dependencies are locked with hashes and a relative 7 day cooldown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
413 B
Python
20 lines
413 B
Python
"""Smoke test: the package and its architecture layers import."""
|
|
|
|
import importlib
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"module_name",
|
|
[
|
|
"chemenu",
|
|
"chemenu.domain",
|
|
"chemenu.application",
|
|
"chemenu.ports",
|
|
"chemenu.adapters",
|
|
],
|
|
)
|
|
def test_module_imports(module_name: str) -> None:
|
|
assert importlib.import_module(module_name).__name__ == module_name
|