Skip to content

Commit e99707f

Browse files
author
Roman
committed
fix unit tests
1 parent 49937c2 commit e99707f

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

tests/unit_tests/extrinsics/asyncex/test_commit_reveal.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ def hyperparams():
3636
alpha_high=0,
3737
alpha_low=0,
3838
liquid_alpha_enabled=False,
39+
alpha_sigmoid_steepness=0,
40+
yuma_version=3,
41+
subnet_is_active=False,
42+
transfers_enabled=False,
43+
bonds_reset_enabled=False,
44+
user_liquidity_enabled=False,
3945
)
4046

4147

tests/unit_tests/extrinsics/test_commit_reveal.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ def hyperparams():
3737
alpha_high=0,
3838
alpha_low=0,
3939
liquid_alpha_enabled=False,
40+
alpha_sigmoid_steepness=0,
41+
yuma_version=3,
42+
subnet_is_active=False,
43+
transfers_enabled=False,
44+
bonds_reset_enabled=False,
45+
user_liquidity_enabled=False,
4046
)
4147

4248

tests/unit_tests/test_async_subtensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ async def test_get_subnet_hyperparameters_success(subtensor, mocker):
21232123
# Asserts
21242124
mocked_query_runtime_api.assert_called_once_with(
21252125
runtime_api="SubnetInfoRuntimeApi",
2126-
method="get_subnet_hyperparams",
2126+
method="get_subnet_hyperparams_v2",
21272127
params=[fake_netuid],
21282128
block=None,
21292129
block_hash=fake_block_hash,
@@ -2147,7 +2147,7 @@ async def test_get_subnet_hyperparameters_no_data(subtensor, mocker):
21472147
# Asserts
21482148
mocked_query_runtime_api.assert_called_once_with(
21492149
runtime_api="SubnetInfoRuntimeApi",
2150-
method="get_subnet_hyperparams",
2150+
method="get_subnet_hyperparams_v2",
21512151
params=[fake_netuid],
21522152
block=None,
21532153
block_hash=None,
@@ -2177,7 +2177,7 @@ async def test_get_subnet_hyperparameters_without_0x_prefix(subtensor, mocker):
21772177
# Asserts
21782178
mocked_query_runtime_api.assert_called_once_with(
21792179
runtime_api="SubnetInfoRuntimeApi",
2180-
method="get_subnet_hyperparams",
2180+
method="get_subnet_hyperparams_v2",
21812181
params=[fake_netuid],
21822182
block=None,
21832183
block_hash=None,

tests/unit_tests/test_subtensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def test_get_subnet_hyperparameters_success(mocker, subtensor):
846846
# Asserts
847847
subtensor.query_runtime_api.assert_called_once_with(
848848
runtime_api="SubnetInfoRuntimeApi",
849-
method="get_subnet_hyperparams",
849+
method="get_subnet_hyperparams_v2",
850850
params=[netuid],
851851
block=block,
852852
)
@@ -870,7 +870,7 @@ def test_get_subnet_hyperparameters_no_data(mocker, subtensor):
870870
assert result is None
871871
subtensor.query_runtime_api.assert_called_once_with(
872872
runtime_api="SubnetInfoRuntimeApi",
873-
method="get_subnet_hyperparams",
873+
method="get_subnet_hyperparams_v2",
874874
params=[netuid],
875875
block=block,
876876
)

0 commit comments

Comments
 (0)