Skip to content

Commit 71b0c28

Browse files
author
Roman
committed
fix test
1 parent 3497cd6 commit 71b0c28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit_tests/test_async_subtensor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,9 @@ async def test_set_weights_success(subtensor, mocker):
26142614
fake_weights = [0.3, 0.5, 0.2]
26152615
max_retries = 1
26162616

2617-
mocked_get_uid_for_hotkey_on_subnet = mocker.AsyncMock(return_value=fake_netuid)
2617+
mocked_get_uid_for_hotkey_on_subnet = mocker.patch.object(
2618+
subtensor, "get_uid_for_hotkey_on_subnet"
2619+
)
26182620
subtensor.get_uid_for_hotkey_on_subnet = mocked_get_uid_for_hotkey_on_subnet
26192621

26202622
mocked_blocks_since_last_update = mocker.AsyncMock(return_value=2)

0 commit comments

Comments
 (0)