tests.test_provenance module¶
Tests of the PEP 740 provenance lookup and of the review of a run’s bumps.
- tests.test_provenance.test_release_provenance_tells_an_absence_from_a_failure(mock_files, error, expected)[source]¶
Only a 404 of the integrity API says the release carries no provenance.
- tests.test_provenance.test_release_provenance_of_an_unreadable_body_is_unknown(mock_files, body)[source]¶
A body that is no JSON object proves no presence and no absence either.
- tests.test_provenance.test_tool_versions_withhold_a_pypi_tool_that_lost_provenance(monkeypatch)[source]¶
The registry keeps the pin of a tool whose new release lost provenance.
A binary bump in the same run still lands, its cell naming the attestation the checksum recompute verifies.
- tests.test_provenance.test_tool_versions_bump_the_packages_pinned_beside_a_tool(monkeypatch)[source]¶
A
with_packagespin is reviewed and bumped like a tool of its own.The pin that lost provenance is held, and the others are rewritten. Each links to the repository PyPI names, else to its PyPI page. Only a package with a repository asks for release notes.
- tests.test_provenance.test_uv_lock_steps_back_a_package_that_lost_provenance(tmp_path, monkeypatch)[source]¶
The lost bump is locked again at its previous version; the others stay.