From 0814551cfd2ef6b7e8f6bbd2c70042e44fd53414 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Wed, 18 Nov 2026 18:33:38 -0500 Subject: [PATCH] Correct comment about how post failures are noticed --- tests/test_get_saint_of_the_day.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)