diff --git a/tests/test_main.py b/tests/test_main.py index 7fba755..f14b9c8 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -47,6 +47,12 @@ def test_schedule_at_missing(): ) +def test_schedule_at_failure(): + assert schedule_at(OUTPUT, ["ls"], at_command="/usr/bin/false").startswith( + "Scheduling with at failed with code 1, see output below:" + ) + + def raiseLocationError(): raise InvalidLocationError