diff --git a/tests/test_get_saint_of_the_day.py b/tests/test_get_saint_of_the_day.py index 2d366c1..710a96e 100644 --- a/tests/test_get_saint_of_the_day.py +++ b/tests/test_get_saint_of_the_day.py @@ -504,8 +504,8 @@ def test_script_with_post_flag_skips_saint_without_picture( def test_script_fails_loudly_when_mastodon_post_fails( project_dir, credentials, set_today, mastodon_that_fails, monkeypatch, capsys ): - # The error must escape main() so the script exits non-zero and a - # scheduler (cron, PythonAnywhere tasks) can tell the post failed. + # The error must escape main() so the script exits non-zero: otherwise + # systemd treats the run as a success and never triggers OnFailure. write_csv(project_dir, ["January 21,Agnes,Sainte Agnès,"]) (project_dir / "pics" / "Agnes.jpg").write_bytes(b"fake image") set_today(2026, 1, 21)