mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
tests: Make existing tests use the new infrastructure
This commit is contained in:
parent
e630aa4fe2
commit
4d7ea13d7f
1 changed files with 5 additions and 3 deletions
|
@ -103,14 +103,16 @@ class IntegrationTest(object):
|
|||
if self.output:
|
||||
assert self.read_buffer() == self.output
|
||||
|
||||
def test_focus_burndown_daily(self):
|
||||
class TestBurndown(IntegrationTest):
|
||||
|
||||
def execute(self):
|
||||
self.command("TaskWikiBurndownDaily")
|
||||
assert self.command(":py print vim.current.buffer").startswith("<buffer burndown.daily")
|
||||
assert "Daily Burndown" in self.read_buffer()[0]
|
||||
|
||||
class TestViewports(TestIntegration):
|
||||
class TestViewports(IntegrationTest):
|
||||
|
||||
def test_viewport_filling(self):
|
||||
def execute(self):
|
||||
lines = ["=== Work tasks | +work ==="]
|
||||
self.write_buffer(lines)
|
||||
self.command("w")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue