Files
gcp_solution_architecture_a…/tests/test_artifacts.py

16 lines
554 B
Python

from pathlib import Path
ROOT = Path(__file__).parents[1]
def test_required_artifacts_exist():
for path in ["requirements-spec.md", "architecture.md", "solution-architecture-guide.md", "terraform/main.tf", "scripts/validate_artifacts.py"]:
assert (ROOT / path).is_file()
def test_workflow_has_four_phases():
text = (ROOT / "README.md").read_text()
assert all(f"{n}." in text for n in range(1, 5))
def test_terraform_is_not_an_apply_script():
text = (ROOT / "architecture.md").read_text()
assert "No apply is used" in text