File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 88from async_substrate_interface import sync_substrate
99from async_substrate_interface .types import ScaleObj
1010import websockets
11- from substrateinterface .exceptions import SubstrateRequestException
1211
1312from bittensor import StakeInfo
1413from bittensor .core import settings
@@ -3811,18 +3810,3 @@ def test_get_parents_no_parents(subtensor, mocker):
38113810 params = [fake_hotkey , fake_netuid ],
38123811 )
38133812 assert result == []
3814-
3815-
3816- def test_get_parents_substrate_request_exception (subtensor , mocker ):
3817- """Tests get_parents when SubstrateRequestException is raised."""
3818- # Preps
3819- fake_hotkey = "valid_hotkey"
3820- fake_netuid = 1
3821- fake_exception = SubstrateRequestException ("Test Exception" )
3822-
3823- mocked_query = mocker .MagicMock (side_effect = fake_exception )
3824- subtensor .substrate .query = mocked_query
3825-
3826- # Call
3827- with pytest .raises (SubstrateRequestException ):
3828- subtensor .get_parents (hotkey = fake_hotkey , netuid = fake_netuid )
You can’t perform that action at this time.
0 commit comments