File tree Expand file tree Collapse file tree 4 files changed +2
-14
lines changed
Expand file tree Collapse file tree 4 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ def block_height(self):
457457 raise ValueError (f"Invalid block height result: { result } " )
458458
459459 def finalized_block_height (self ):
460- """Cached query and returns finalized blockheight after converting hex string value to an int"""
460+ """Returns finalized blockheight after converting hex string value to an int"""
461461 finalized_block = self .interface .json_rpc_post (self .finalized_block_height_payload )
462462 if finalized_block is None :
463463 return None
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ def get_collector_registry(self) -> list:
8888 collector = collectors .StarknetCollector
8989 case "aptos" , "aptos" :
9090 collector = collectors .AptosCollector
91- case "tron" , "tron" :
92- collector = collectors .TronCollector
9391 case "xrpl" , "xrpl" :
9492 collector = collectors .XRPLCollector
9593 case "evmhttp" , other : # pylint: disable=unused-variable
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def test_block_height(self):
6363 'number' )
6464
6565 def test_finalized_block_height (self ):
66- """Tests the finalized_block_height function uses the correct call and args to get finalized block height """
66+ """Tests that finalized_block_height uses correct call and args to get finalized block"""
6767 # Mock with hex string, not integer
6868 mock_block_response = {"number" : "0x1a2b3c" }
6969 self .mocked_websocket .return_value .query .return_value = mock_block_response
Original file line number Diff line number Diff line change @@ -171,16 +171,6 @@ def test_get_collector_registry_for_xrpl(self):
171171 "CONFIG_FILE_PATH" : "tests/fixtures/configuration_evmhttp.yaml" ,
172172 "VALIDATION_FILE_PATH" : "tests/fixtures/validation.yaml"
173173 })
174- def test_get_collector_registry_for_evmhttp (self ):
175- """Tests that the EVM HTTP collector is called with the correct args"""
176- self .collector_registry = CollectorRegistry ()
177- with mock .patch ('collectors.EvmHttpCollector' , new = mock .Mock ()) as collector :
178- helper_test_collector_registry (self , collector )
179-
180- @mock .patch .dict (os .environ , {
181- "CONFIG_FILE_PATH" : "tests/fixtures/configuration_evm.yaml" ,
182- "VALIDATION_FILE_PATH" : "tests/fixtures/validation.yaml"
183- })
184174 def test_get_collector_registry_for_evm (self ):
185175 """Tests that the evm collector is called with the correct args"""
186176 self .collector_registry = CollectorRegistry ()
You can’t perform that action at this time.
0 commit comments