mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:29:23 +08:00
18 lines
450 B
Python
18 lines
450 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
import subprocess
|
|
import sys
|
|
|
|
|
|
def test_architecture_boundaries() -> None:
|
|
root = Path(__file__).resolve().parents[2]
|
|
result = subprocess.run(
|
|
[sys.executable, str(root / "scripts" / "check_architecture.py"), "--root", str(root)],
|
|
cwd=root,
|
|
check=False,
|
|
capture_output=True,
|
|
text=True,
|
|
)
|
|
assert result.returncode == 0, result.stderr
|