From 0b1b370054d5b4e9b10ee5001b42c18e61b9f73b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 15 Apr 2016 17:20:53 -0400 Subject: [PATCH] Tests: Account for non-zero exit --- test/clock.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/clock.t b/test/clock.t index 298fecc6..5841451e 100755 --- a/test/clock.t +++ b/test/clock.t @@ -63,7 +63,7 @@ class TestClock(TestCase): def test_start_new(self): """Verify that 'start' creates an open interval""" - code, out, err = self.t("") + code, out, err = self.t.runError("") self.assertIn("There is no active time tracking.", out) code, out, err = self.t("start tag1 tag2") @@ -76,7 +76,7 @@ class TestClock(TestCase): def test_start_stop(self): """Verify that start/stop creates and closes an interval""" - code, out, err = self.t("") + code, out, err = self.t.runError("") self.assertIn("There is no active time tracking.", out) code, out, err = self.t("start tag1 tag2") @@ -90,12 +90,12 @@ class TestClock(TestCase): self.assertIn('"end":', out) self.assertIn('"tags":["tag1","tag2"]', out) - code, out, err = self.t("") + code, out, err = self.t.runError("") self.assertIn("There is no active time tracking.", out) def test_start_additional(self): """Verify that 'start' closes an open interval and starts a new one""" - code, out, err = self.t("") + code, out, err = self.t.runError("") self.assertIn("There is no active time tracking.", out) code, out, err = self.t("start tag1 tag2") @@ -114,7 +114,7 @@ class TestClock(TestCase): self.assertIn('"tags":["tag1","tag2"]', out) self.assertIn('"tags":["tag3"]', out) - code, out, err = self.t("") + code, out, err = self.t.runError("") self.assertIn("There is no active time tracking.", out) def test_start_subtract(self):