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_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_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.