From a645a3cb6d043dde812cd7bb7a44b7aed802aa4f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 24 Jul 2016 12:31:03 -0400 Subject: [PATCH] Tests: Error result in non-zero exit code --- test/quiet.t | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/quiet.t b/test/quiet.t index c0c78dcd..fd0a0798 100755 --- a/test/quiet.t +++ b/test/quiet.t @@ -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__":