mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
tests: Add tests for the replacement of the splits
This commit is contained in:
parent
949284ba83
commit
d26ba8ca49
1 changed files with 15 additions and 0 deletions
|
@ -244,3 +244,18 @@ class TestTagsSimple(IntegrationTest):
|
|||
assert re.search(header, output, re.MULTILINE)
|
||||
assert re.search(chores, output, re.MULTILINE)
|
||||
assert re.search(work, output, re.MULTILINE)
|
||||
|
||||
|
||||
class TestSplitReplacement(IntegrationTest):
|
||||
|
||||
def execute(self):
|
||||
self.command("TaskWikiBurndownDaily")
|
||||
assert self.command(":py print vim.current.buffer", silent=False).startswith("<buffer burndown.daily")
|
||||
assert "Daily Burndown" in self.read_buffer()[0]
|
||||
|
||||
self.command("TaskWikiBurndownDaily")
|
||||
assert self.command(":py print vim.current.buffer", silent=False).startswith("<buffer burndown.daily")
|
||||
assert "Daily Burndown" in self.read_buffer()[0]
|
||||
|
||||
# Assert that there are only two buffers in the window
|
||||
self.command(":py print len(vim.buffers)", regex='2$', lines=1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue