mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Refactor CmdDefault
- restore original command behaviour:return exit code 0 if tracking is active, 1 if not - show welcome screen on first run - add/update tests
This commit is contained in:
parent
ecb8aa447c
commit
f1b3b3bb72
4 changed files with 47 additions and 29 deletions
|
@ -58,10 +58,10 @@ class TestQuietMode(TestCase):
|
|||
|
||||
def test_default(self):
|
||||
"""Default command should obey :quiet hint"""
|
||||
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(":quiet")
|
||||
code, out, err = self.t.runError(":quiet")
|
||||
self.assertNotIn('There is no active time tracking.', out)
|
||||
|
||||
def test_stop(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue