Skip to content

Commit f3ec701

Browse files
author
Roman
committed
fix tests assertions
1 parent fcf1223 commit f3ec701

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
@@ -3238,7 +3238,7 @@ async def test_get_metagraph_info_invalid_field_indices(subtensor, wrong_fields)
32383238
"""Test get_metagraph_info raises ValueError on invalid field_indices."""
32393239
with pytest.raises(
32403240
ValueError,
3241-
match="`field_indices` must be a list of SelectiveMetagraphIndex items.",
3241+
match="`field_indices` must be a list of SelectiveMetagraphIndex enums or ints.",
32423242
):
32433243
await subtensor.get_metagraph_info(netuid=1, field_indices=wrong_fields)
32443244

tests/unit_tests/test_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,7 @@ def test_get_metagraph_info_invalid_field_indices(subtensor, wrong_fields):
34903490
"""Test get_metagraph_info raises ValueError on invalid field_indices."""
34913491
with pytest.raises(
34923492
ValueError,
3493-
match="`field_indices` must be a list of SelectiveMetagraphIndex items.",
3493+
match="`field_indices` must be a list of SelectiveMetagraphIndex enums or ints.",
34943494
):
34953495
subtensor.get_metagraph_info(netuid=1, field_indices=wrong_fields)
34963496

0 commit comments

Comments
 (0)