mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
22 lines
544 B
Python
22 lines
544 B
Python
from tests.base import IntegrationTest
|
|
|
|
|
|
class TestSimpleTask(IntegrationTest):
|
|
|
|
viminput = """
|
|
* [ ] This is a test task
|
|
"""
|
|
|
|
vimoutput = """
|
|
* [ ] This is a test task #{uuid}
|
|
"""
|
|
|
|
def execute(self):
|
|
self.command("w", regex="written$", lines=1)
|
|
|
|
# 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'
|