Skip to content

Commit 0c747df

Browse files
author
Roman
committed
fix test
1 parent 3c09578 commit 0c747df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit_tests/test_async_subtensor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3661,7 +3661,11 @@ async def test_get_liquidity_list_happy_path(subtensor, fake_wallet, mocker):
36613661
),
36623662
],
36633663
]
3664-
mocked_query_map = mocker.AsyncMock(return_value=fake_positions)
3664+
3665+
fake_result = mocker.AsyncMock(autospec=list)
3666+
fake_result.__aiter__.return_value = iter(fake_positions)
3667+
3668+
mocked_query_map = mocker.AsyncMock(return_value=fake_result)
36653669
mocker.patch.object(subtensor, "query_map", new=mocked_query_map)
36663670

36673671
# Call

0 commit comments

Comments
 (0)