tests Add test for loading task not present in TW

This commit is contained in:
Tomas Babej 2015-12-27 18:41:59 +01:00
parent d3457479c0
commit 7da15db25f

View file

@ -26,6 +26,27 @@ class TestSimpleTaskCreation(IntegrationTest):
assert task['status'] == 'pending'
class TestInvalidUUIDTask(IntegrationTest):
viminput = """
* [ ] This is a test task #abc123ef
"""
vimoutput = """
* [ ] This is a test task #{uuid}
"""
def execute(self):
self.command("w", regex="on line 1 will be re-created")
# Check that only one tasks with this description exists
assert len(self.tw.tasks.pending()) == 1
task = self.tw.tasks.pending()[0]
assert task['description'] == 'This is a test task'
assert task['status'] == 'pending'
class TestSimpleTaskModification(IntegrationTest):
viminput = """