Skip to content

Commit ab9e5c4

Browse files
test: drop local cpa-templates typed-starter assertion
That catalog entry lives in cpa-templates#45 and is not on main yet; keep this PR focused on Windows file:// path resolution + unit tests. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0bdba70 commit ab9e5c4

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

packages/create-awesome-python-app/tests/test_catalog_fetch.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919
FIXTURE_PATH = (
2020
Path(__file__).resolve().parents[3] / "fixtures" / "catalog" / "templates.json"
2121
)
22-
REPO_ROOT = Path(__file__).resolve().parents[3]
23-
_DEFAULT_CPA_TEMPLATES = (REPO_ROOT.parent / "cpa-templates").resolve()
24-
CPA_TEMPLATES_ROOT = Path(
25-
os.environ.get("CPA_TEMPLATES_ROOT", str(_DEFAULT_CPA_TEMPLATES))
26-
).resolve()
27-
28-
2922
@pytest.fixture(autouse=True)
3023
def _reset_cache(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
3124
reset_catalog_cache_for_tests()
@@ -87,15 +80,6 @@ def test_get_catalog_data_disk_fallback_on_network_error(
8780
assert data["templates"][0]["slug"] == "cached"
8881

8982

90-
def test_local_cpa_templates_catalog_includes_typed_fastapi_template() -> None:
91-
catalog_path = CPA_TEMPLATES_ROOT / "templates.json"
92-
if not catalog_path.is_file():
93-
pytest.skip("local cpa-templates checkout not available")
94-
95-
payload = json.loads(catalog_path.read_text(encoding="utf-8"))
96-
97-
assert any(template["slug"] == "fastapi-typed-starter" for template in payload["templates"])
98-
9983

10084
def test_default_url_points_to_cpa_templates() -> None:
10185
assert DEFAULT_CATALOG_URL.endswith("/cpa-templates/main/templates.json")

0 commit comments

Comments
 (0)