tests.test_event moduleΒΆ
Tests for repomatic.github.event payload readers.
- tests.test_event.test_event_subject_readers_agree(event, is_pr, author, number)ΒΆ
All three payload readers resolve the same subject node.
- tests.test_event.test_extract_workflow_filename(workflow_ref, expected)ΒΆ
Extract workflow filename from various reference formats.
- tests.test_event.test_get_default_branch(event, expected)ΒΆ
The repository node names the branch a pull request opens against.
- tests.test_event.test_get_github_event_degrades_on_an_unreadable_payload(tmp_path, monkeypatch, content)ΒΆ
A payload that cannot be read means no defaults, never a traceback.
- tests.test_event.test_get_github_event_reads_the_payload(tmp_path, monkeypatch)ΒΆ
The payload file the runner names is parsed once and returned.
- tests.test_event.test_get_github_event_without_a_path(monkeypatch)ΒΆ
Outside a workflow run there is no payload at all.