Mappings: Delegate to VimwikiFollowLink for link creation

This commit is contained in:
Tomas Babej 2017-01-27 10:29:34 +01:00
parent a95efa91f2
commit 0ac7da0fde
3 changed files with 33 additions and 3 deletions

View file

@ -599,3 +599,28 @@ class TestViewportsPreserveHierarchyUponCompletion(IntegrationTest):
sleep(0.5)
self.command("w", regex="written$", lines=1)
sleep(0.5)
class TestViewportRecurrentInstanceTaskGeneration(IntegrationTest):
viminput = """
=== Work tasks | +TODAY ===
"""
vimoutput = """
=== Work tasks | +TODAY ===
* [ ] daily task #{uuid}
"""
tasks = [
dict(description="daily task", recur="daily", due="today"),
]
def execute(self):
self.command("w", regex="written$", lines=1)
# Assert that the task did not change after another successful
# subsequent saving. See pull request #125.
self.command("w", regex="written$", lines=1)
task = self.tw.tasks.pending()[0]
assert task['description'] == "daily task"