mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Properly setup mocked vim instance
This commit is contained in:
parent
5b5069eac7
commit
82da710fd6
3 changed files with 39 additions and 37 deletions
|
@ -255,3 +255,16 @@ class MultipleSourceTest(IntegrationTest):
|
|||
return line.format(uuid=tasks[0]['uuid'].split('-')[0])
|
||||
else:
|
||||
return line
|
||||
|
||||
|
||||
# Mock vim to test vim-nonrelated functions
|
||||
class MockVim(object):
|
||||
|
||||
def eval(*args, **kwargs):
|
||||
return 42
|
||||
|
||||
class current(object):
|
||||
buffer = ['']
|
||||
|
||||
vars = dict(taskwiki_sort_orders=dict(T='extra'))
|
||||
warriors = dict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue