mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Tests: Added start tests
This commit is contained in:
parent
bf45ea6ed3
commit
a24be8c4cc
1 changed files with 8 additions and 0 deletions
|
@ -64,6 +64,14 @@ class TestStart(TestCase):
|
|||
self.assertTrue('start' in j[0])
|
||||
self.assertFalse('end' in j[0])
|
||||
|
||||
def test_timed_start(self):
|
||||
"""Test timed start"""
|
||||
self.t("start 10:30am")
|
||||
j = self.t.export()
|
||||
self.assertEqual(len(j), 1)
|
||||
self.assertTrue('start' in j[0])
|
||||
self.assertFalse('end' in j[0])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue