tests: Add regression test for multiple caches

This commit is contained in:
Bodo Graumann 2017-01-27 16:43:01 +01:00 committed by Tomas Babej
parent 0c06e02a0e
commit 0225b44e53

View file

@ -1350,3 +1350,34 @@ class TestSortManually(IntegrationTest):
self.client.feedkeys(":TaskWikiSort description-")
self.client.type("<Enter>")
sleep(0.5)
class TestSelectAfterBufferSwitch(IntegrationTest):
viminput = """
* [ ] test task #{uuid}
"""
vimoutput = """
* [ ] test task #{uuid}
"""
tasks = [
dict(description="test task"),
]
def execute(self):
self.command('w', silent=False)
sleep(0.5)
self.command('split testwiki2.txt', silent=False)
sleep(0.5)
self.command('set filetype=vimwiki', silent=False)
sleep(0.5)
self.command('q!')
sleep(0.5)
self.client.normal('1gg')
sleep(0.5)
self.command("TaskWikiMod project:Home", regex="Modified 1 task.")
sleep(0.5)
self.tasks[0].refresh()
assert self.tasks[0]['project'] == "Home"