from pathlib import Path ROOT = Path(__file__).resolve().parents[2] def test_canonical_and_deployed_license_helpers_are_identical(): canonical = ROOT / "scripts/cezen_license.py" deployed = ROOT / "ansible/roles/cezen-backend/files/cezen_license.py" assert canonical.read_bytes() == deployed.read_bytes() def test_customer_labels_preserve_compatibility_slugs(): source = (ROOT / "scripts/cezen_license.py").read_text() for slug in ("starter", "basic", "pro", "max"): assert slug in source assert 'WORKSTATION_TIER = "workstation"' in source