Skip to content

Commit 0bdba70

Browse files
test: skip local cpa-templates catalog check when checkout missing
CI does not have a sibling cpa-templates tree; keep the typed-starter assertion for local/dev checkouts only. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f84519d commit 0bdba70

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def test_get_catalog_data_disk_fallback_on_network_error(
8989

9090
def test_local_cpa_templates_catalog_includes_typed_fastapi_template() -> None:
9191
catalog_path = CPA_TEMPLATES_ROOT / "templates.json"
92-
assert catalog_path.is_file()
92+
if not catalog_path.is_file():
93+
pytest.skip("local cpa-templates checkout not available")
9394

9495
payload = json.loads(catalog_path.read_text(encoding="utf-8"))
9596

0 commit comments

Comments
 (0)