Skip to content

Commit

Permalink
tests: add test for at(1) exiting with error code
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed May 7, 2024
1 parent 682c521 commit 5af7c94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5af7c94

Please sign in to comment.