tests: Expand the MockCache with the real LineStore implementation

This commit is contained in:
Tomas Babej 2015-12-26 13:19:43 +01:00
parent 875541f876
commit 90202b3f9d

View file

@ -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'})