tests.test_sponsor module

Tests for repomatic.github.sponsor.

tests.test_sponsor.test_iter_sponsors_reads_every_page_with_one_query()[source]

User and organization owners share one query, walked page by page.

tests.test_sponsor.test_is_sponsor_stops_at_the_first_match()[source]

A sponsor found on the first page spares the read of the next ones.

tests.test_sponsor.test_is_sponsor_reads_a_failed_query_as_no()[source]

An API outage never fails the job: the author reads as no sponsor.

tests.test_sponsor.test_is_sponsor_asks_again_on_each_call()[source]

Nothing is cached, so a later call never replays an outage.

tests.test_sponsor.test_sponsor_label_labels_a_sponsor_issue(tmp_path, monkeypatch)[source]

The command labels the event’s thread when its author sponsors the owner.