Skip to content

Commit 48bac16

Browse files
committed
fix tests
1 parent a600b2a commit 48bac16

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/test_registries.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_get_collector_registry_for_xrpl(self):
168168
helper_test_collector_registry(self, collector)
169169

170170
@mock.patch.dict(os.environ, {
171-
"CONFIG_FILE_PATH": "tests/fixtures/configuration_evmhttp.yaml",
171+
"CONFIG_FILE_PATH": "tests/fixtures/configuration_evm.yaml",
172172
"VALIDATION_FILE_PATH": "tests/fixtures/validation.yaml"
173173
})
174174
def test_get_collector_registry_for_evm(self):
@@ -177,6 +177,16 @@ def test_get_collector_registry_for_evm(self):
177177
with mock.patch('collectors.EvmCollector', new=mock.Mock()) as collector:
178178
helper_test_collector_registry(self, collector)
179179

180+
@mock.patch.dict(os.environ, {
181+
"CONFIG_FILE_PATH": "tests/fixtures/configuration_evmhttp.yaml",
182+
"VALIDATION_FILE_PATH": "tests/fixtures/validation.yaml"
183+
})
184+
def test_get_collector_registry_for_evm(self):
185+
"""Tests that the evm collector is called with the correct args"""
186+
self.collector_registry = CollectorRegistry()
187+
with mock.patch('collectors.EvmHttpCollector', new=mock.Mock()) as collector:
188+
helper_test_collector_registry(self, collector)
189+
180190
@mock.patch.dict(os.environ, {
181191
"CONFIG_FILE_PATH": "tests/fixtures/configuration_unsupported_blockchain.yaml",
182192
"VALIDATION_FILE_PATH": "tests/fixtures/validation.yaml"

0 commit comments

Comments
 (0)