Tests: Error result in non-zero exit code

This commit is contained in:
Paul Beckingham 2016-07-24 12:31:39 -04:00
parent a645a3cb6d
commit 6dca686763

View file

@ -58,8 +58,8 @@ class TestClock(TestCase):
def test_stop_nothing(self):
"""Verify that stopping an unstarted interval does nothing"""
code, out, err = self.t("stop")
self.assertIn("There is no active time tracking.", out)
code, out, err = self.t.runError("stop")
self.assertIn("There is no active time tracking.", err)
def test_start_new(self):
"""Verify that 'start' creates an open interval"""