mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Expand the MockCache with the real LineStore implementation
This commit is contained in:
parent
875541f876
commit
90202b3f9d
1 changed files with 7 additions and 0 deletions
|
@ -279,6 +279,13 @@ class MockCache(object):
|
|||
warriors = {'default': 'default'}
|
||||
buffer_has_authority = True
|
||||
|
||||
def __init__(self):
|
||||
from taskwiki import store
|
||||
self.line = store.LineStore(self)
|
||||
self.vwtask = dict()
|
||||
self.task = dict()
|
||||
self.viewport = dict()
|
||||
|
||||
def reset(self):
|
||||
self.warriors.clear()
|
||||
self.warriors.update({'default': 'default'})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue