ifcurl/tests
Bruno Postle 03782ec9f7 Fix fetch-on-miss for PR commits: catch ValueError from GitPython directly
GitPython raises a plain ValueError from _parse_object_header when a commit
hash is missing, not BadObject, so the previous message-based retry guard
("not found in repository") never matched. Broaden the except clause to catch
(ValueError, BadObject, BadName) and drop the fragile string check. Extract
the fetch logic into _fetch_all_refs helper and apply the same retry to
diff_text. Add tests covering _fetch_all_refs, the retry-on-BadObject path,
and the no-retry-for-local-transport invariant.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 08:56:07 +01:00
..
conftest.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_auth.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_bcf.py bcf: add bcf_viewpoint_to_ifc_url() and IfcUrl.to_string() 2026-04-29 19:04:04 +01:00
test_bcf_api.py bcf_api: add topic filtering; documents_api: add GET /document-metadata 2026-04-29 22:24:52 +01:00
test_diff.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_documents_api.py bcf_api: add topic filtering; documents_api: add GET /document-metadata 2026-04-29 22:24:52 +01:00
test_git.py Fix fetch-on-miss for PR commits: catch ValueError from GitPython directly 2026-05-16 08:56:07 +01:00
test_render.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_sandbox.py style: ruff --fix + black across ifcurl/ and tests/ 2026-04-25 08:34:56 +01:00
test_service.py bcf_api: implement BCF 3.0 REST API as Python routes in the preview service 2026-04-29 19:38:34 +01:00
test_url.py url.py, test_url.py: add query parameter and visibility=clash 2026-05-09 07:27:35 +00:00
test_viewer_url.mjs viewer: extract URL logic to viewer-url.js, add JS tests 2026-04-24 07:31:19 +01:00