@@ -591,8 +591,8 @@ def test_latency(self):
591591 self .assertEqual (0.123 , self .solana_collector .latency ())
592592
593593
594- class TestStarkwareCollector (TestCase ):
595- """Tests the starkware collector class"""
594+ class TestStarknetCollector (TestCase ):
595+ """Tests the starknet collector class"""
596596
597597 def setUp (self ):
598598 self .url = "wss://test.com"
@@ -608,45 +608,45 @@ def setUp(self):
608608 "id" : 1
609609 }
610610 with mock .patch ('collectors.HttpsInterface' ) as mocked_connection :
611- self .starkware_collector = collectors .StarkwareCollector (
611+ self .starknet_collector = collectors .StarknetCollector (
612612 self .url , self .labels , self .chain_id , ** self .client_params )
613613 self .mocked_connection = mocked_connection
614614
615615 def test_https_interface_created (self ):
616- """Tests that the starkware collector calls the https interface with the correct args"""
616+ """Tests that the starknet collector calls the https interface with the correct args"""
617617 self .mocked_connection .assert_called_once_with (
618618 self .url , self .open_timeout , self .ping_timeout )
619619
620620 def test_interface_attribute_exists (self ):
621621 """Tests that the interface attribute exists.
622622 May be used by external calls to access objects such as the interface cache"""
623- self .assertTrue (hasattr (self .starkware_collector , 'interface' ))
623+ self .assertTrue (hasattr (self .starknet_collector , 'interface' ))
624624
625625 def test_alive_call (self ):
626626 """Tests the alive function uses the correct call and args"""
627- self .starkware_collector .alive ()
627+ self .starknet_collector .alive ()
628628 self .mocked_connection .return_value .cached_json_rpc_post .assert_called_once_with (
629629 self .block_height_payload )
630630
631631 def test_alive_false (self ):
632632 """Tests the alive function returns false when post returns None"""
633633 self .mocked_connection .return_value .cached_json_rpc_post .return_value = None
634- result = self .starkware_collector .alive ()
634+ result = self .starknet_collector .alive ()
635635 self .assertFalse (result )
636636
637637 def test_block_height (self ):
638638 """Tests the block_height function uses the correct call and args to get block height"""
639- self .starkware_collector .block_height ()
639+ self .starknet_collector .block_height ()
640640 self .mocked_connection .return_value .cached_json_rpc_post .assert_called_once_with (
641641 self .block_height_payload )
642642
643643 def test_block_height_returns_none (self ):
644644 """Tests that the block height returns None if json_rpc_post returns None"""
645645 self .mocked_connection .return_value .cached_json_rpc_post .return_value = None
646- result = self .starkware_collector .block_height ()
646+ result = self .starknet_collector .block_height ()
647647 self .assertEqual (None , result )
648648
649649 def test_latency (self ):
650650 """Tests that the latency is obtained from the interface based on latest_query_latency"""
651651 self .mocked_connection .return_value .latest_query_latency = 0.123
652- self .assertEqual (0.123 , self .starkware_collector .latency ())
652+ self .assertEqual (0.123 , self .starknet_collector .latency ())
0 commit comments