tests.test_status moduleΒΆ
Tests for repomatic.github.status.
The probe fetches through repomatic.http.get_json(), so the network
seam is repomatic.http.urlopen.
- tests.test_status.test_healthy_status_parsed()[source]ΒΆ
A healthy indicator returns a non-incident GitHubStatus.
- tests.test_status.test_incident_status_parsed(indicator)[source]ΒΆ
Any non-
noneindicator surfaces as an incident.
- tests.test_status.test_unusable_response_returns_none(patch_kwargs)[source]ΒΆ
Every unusable response collapses to None rather than raising.
The probe is advisory: it annotates a failure message with GitHubβs own incident state, so anything it cannot read has to degrade quietly instead of turning a diagnostic into a second failure.
- tests.test_status.test_get_github_status_is_memoized()[source]ΒΆ
Repeat calls within one process probe the network once.
- tests.test_status.test_status_annotation_empty_when_unreachable()[source]ΒΆ
The annotation helper returns an empty string when the probe fails.
- tests.test_status.test_status_annotation_empty_when_healthy()[source]ΒΆ
The annotation helper returns empty when GitHub reports healthy.