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