@@ -1219,9 +1219,9 @@ async def test_get_delegated_no_block_hash_no_reuse(subtensor, mocker):
1219
1219
# Preps
1220
1220
fake_coldkey_ss58 = "fake_ss58_address"
1221
1221
1222
- mocked_delegated_list_from_dicts = mocker .Mock ()
1223
- async_subtensor . DelegateInfo . delegated_list_from_dicts = (
1224
- mocked_delegated_list_from_dicts
1222
+ mocked_delegated_list_from_dicts = mocker .patch . object (
1223
+ async_subtensor . DelegatedInfo ,
1224
+ "list_from_dicts" ,
1225
1225
)
1226
1226
1227
1227
# Call
@@ -1247,9 +1247,9 @@ async def test_get_delegated_with_block_hash(subtensor, mocker):
1247
1247
fake_coldkey_ss58 = "fake_ss58_address"
1248
1248
fake_block_hash = "fake_block_hash"
1249
1249
1250
- mocked_delegated_list_from_dicts = mocker .Mock ()
1251
- async_subtensor . DelegateInfo . delegated_list_from_dicts = (
1252
- mocked_delegated_list_from_dicts
1250
+ mocked_delegated_list_from_dicts = mocker .patch . object (
1251
+ async_subtensor . DelegatedInfo ,
1252
+ "list_from_dicts" ,
1253
1253
)
1254
1254
1255
1255
# Call
@@ -1277,9 +1277,9 @@ async def test_get_delegated_with_reuse_block(subtensor, mocker):
1277
1277
fake_coldkey_ss58 = "fake_ss58_address"
1278
1278
reuse_block = True
1279
1279
1280
- mocked_delegated_list_from_dicts = mocker .Mock ()
1281
- async_subtensor . DelegateInfo . delegated_list_from_dicts = (
1282
- mocked_delegated_list_from_dicts
1280
+ mocked_delegated_list_from_dicts = mocker .patch . object (
1281
+ async_subtensor . DelegatedInfo ,
1282
+ "list_from_dicts" ,
1283
1283
)
1284
1284
1285
1285
# Call
0 commit comments