mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Tests: Error result in non-zero exit code
This commit is contained in:
parent
c9de7a773d
commit
a645a3cb6d
1 changed files with 3 additions and 6 deletions
|
@ -65,12 +65,9 @@ class TestQuietMode(TestCase):
|
|||
self.assertNotIn('There is no active time tracking.', out)
|
||||
|
||||
def test_stop(self):
|
||||
"""Stop command should obey :quiet hint"""
|
||||
code, out, err = self.t("stop")
|
||||
self.assertIn('There is no active time tracking.', out)
|
||||
|
||||
code, out, err = self.t("stop :quiet")
|
||||
self.assertNotIn('There is no active time tracking.', out)
|
||||
"""Stop command should error on no active tracking"""
|
||||
code, out, err = self.t.runError("stop")
|
||||
self.assertIn('There is no active time tracking.', err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue