Correct comment about how post failures are noticed
This commit is contained in:
1 parent
19400f1fd5
commit
0814551cfd
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user