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 8
8
from async_substrate_interface import sync_substrate
9
9
from async_substrate_interface .types import ScaleObj
10
10
import websockets
11
- from substrateinterface .exceptions import SubstrateRequestException
12
11
13
12
from bittensor import StakeInfo
14
13
from bittensor .core import settings
@@ -3811,18 +3810,3 @@ def test_get_parents_no_parents(subtensor, mocker):
3811
3810
params = [fake_hotkey , fake_netuid ],
3812
3811
)
3813
3812
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