Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed Dec 24, 2024
1 parent 3497cd6 commit 71b0c28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit_tests/test_async_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2614,7 +2614,9 @@ async def test_set_weights_success(subtensor, mocker):
fake_weights = [0.3, 0.5, 0.2]
max_retries = 1

mocked_get_uid_for_hotkey_on_subnet = mocker.AsyncMock(return_value=fake_netuid)
mocked_get_uid_for_hotkey_on_subnet = mocker.patch.object(
subtensor, "get_uid_for_hotkey_on_subnet"
)
subtensor.get_uid_for_hotkey_on_subnet = mocked_get_uid_for_hotkey_on_subnet

mocked_blocks_since_last_update = mocker.AsyncMock(return_value=2)
Expand Down

0 comments on commit 71b0c28

Please sign in to comment.