commit b77aafc7bcd80fa49687f4d9f5721d6f0022a27a
parent 4db22bcc08c2d839863261a908afa05d843e6e24
Author: lash <dev@holbrook.no>
Date: Tue, 15 Mar 2022 09:33:14 +0000
Make dispatcher definable in tests
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/chaind/unittest/common.py b/chaind/unittest/common.py
@@ -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)
diff --git a/tests/test_fs.py b/tests/test_fs.py
@@ -28,6 +28,7 @@ class TestChaindFs(TestChaindFsBase):
def setUp(self):
self.cache_adapter = MockCacheAdapter
+ self.dispatcher = MockDispatcher()
super(TestChaindFs, self).setUp()