Skip to content

Commit c25917f

Browse files
author
Roman
committed
fix unit tests regarding 0 index in the result
1 parent 630dda1 commit c25917f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/unit_tests/test_async_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3119,7 +3119,7 @@ async def test_get_metagraph_info_specific_fields(subtensor, mocker):
31193119
mock_runtime_call.assert_awaited_once_with(
31203120
"SubnetInfoRuntimeApi",
31213121
"get_selective_metagraph",
3122-
params=[netuid, [f.value for f in fields]],
3122+
params=[netuid, [0] + [f.value for f in fields]],
31233123
block_hash=await subtensor.determine_block_hash(None),
31243124
)
31253125
mock_from_dict.assert_called_once_with(mock_value)

tests/unit_tests/test_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ def test_get_metagraph_info_specific_fields(subtensor, mocker):
34473447
mock_runtime_call.assert_called_once_with(
34483448
"SubnetInfoRuntimeApi",
34493449
"get_selective_metagraph",
3450-
params=[netuid, [f.value for f in fields]],
3450+
params=[netuid, [0] + [f.value for f in fields]],
34513451
block_hash=subtensor.determine_block_hash(None),
34523452
)
34533453
mock_from_dict.assert_called_once_with(mock_value)

0 commit comments

Comments
 (0)