deepdata: core product code (backend, frontend, runtime, deepflow module)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_synthesis_module_has_no_python_sources_yet() -> None:
|
||||
module_dir = Path(__file__).resolve().parents[1] / "app" / "module" / "synthesis"
|
||||
py_files = list(module_dir.rglob("*.py"))
|
||||
|
||||
assert py_files == [], (
|
||||
"synthesis 模块已有 Python 实现,请补充真实业务单测并删除该占位用例"
|
||||
)
|
||||
|
||||
|
||||
def test_synthesis_module_scaffold_directories_exist() -> None:
|
||||
root = Path(__file__).resolve().parents[1] / "app" / "module" / "synthesis"
|
||||
|
||||
assert (root / "interface").exists()
|
||||
assert (root / "schema").exists()
|
||||
assert (root / "service").exists()
|
||||
|
||||
|
||||
def test_synthesis_scaffold_contains_only_expected_directories_or_cache() -> None:
|
||||
root = Path(__file__).resolve().parents[1] / "app" / "module" / "synthesis"
|
||||
names = {p.name for p in root.iterdir()}
|
||||
assert "interface" in names
|
||||
assert "schema" in names
|
||||
assert "service" in names
|
||||
|
||||
|
||||
def test_synthesis_module_path_exists() -> None:
|
||||
root = Path(__file__).resolve().parents[1] / "app" / "module" / "synthesis"
|
||||
assert root.exists()
|
||||
assert root.is_dir()
|
||||
Reference in New Issue
Block a user