mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 15:53: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'}
|
warriors = {'default': 'default'}
|
||||||
buffer_has_authority = True
|
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):
|
def reset(self):
|
||||||
self.warriors.clear()
|
self.warriors.clear()
|
||||||
self.warriors.update({'default': 'default'})
|
self.warriors.update({'default': 'default'})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue