Make dispatcher definable in tests
This commit is contained in:
parent
4db22bcc08
commit
b77aafc7bc
@ -50,6 +50,5 @@ class TestChaindFsBase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.chain_spec = ChainSpec('foo', 'bar', 42, 'baz')
|
||||
self.path = tempfile.mkdtemp()
|
||||
self.dispatcher = MockDispatcher()
|
||||
self.adapter = ChaindFsAdapter(self.chain_spec, self.path, self.cache_adapter, self.dispatcher)
|
||||
|
||||
|
@ -28,6 +28,7 @@ class TestChaindFs(TestChaindFsBase):
|
||||
|
||||
def setUp(self):
|
||||
self.cache_adapter = MockCacheAdapter
|
||||
self.dispatcher = MockDispatcher()
|
||||
super(TestChaindFs, self).setUp()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user