tests.test_github_caches moduleΒΆ

Tests of the GitHub Actions cache listing and pruning.

tests.test_github_caches.test_list_caches_filters_on_the_prefix_and_sorts_newest_first(mock_pages)[source]ΒΆ
tests.test_github_caches.test_prune_keeps_the_newest_and_deletes_the_rest(mock_pages, mock_run)[source]ΒΆ
tests.test_github_caches.test_prune_dry_run_deletes_nothing(mock_pages, mock_run)[source]ΒΆ
tests.test_github_caches.test_prune_reports_a_refused_deletion_without_raising(mock_pages, caplog)[source]ΒΆ

A token without actions: write leaves the entry and the job alive.

tests.test_github_caches.test_prune_keep_bounds(mock_pages, mock_run, keep)[source]ΒΆ
tests.test_github_caches.test_report_rows_name_every_entry_once()[source]ΒΆ
tests.test_github_caches.test_cli_prunes_each_prefix(mock_pages, mock_run)[source]ΒΆ
tests.test_github_caches.test_cli_warns_when_the_listing_is_refused(mock_pages, mock_run)[source]ΒΆ

An unreadable listing is a warning, not a failed job.