Skip to content

Commit ad986d5

Browse files
author
Roman
committed
fix test
1 parent 81e0a44 commit ad986d5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/e2e_tests/test_stake_fee.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
1919
netuid = 2
2020
root_netuid = 0
2121
stake_amount = Balance.from_tao(100) # 100 TAO
22-
min_stake_fee = Balance.from_tao(0.299076829)
22+
min_stake_fee = Balance.from_tao(0.050354772)
2323

2424
# Register subnet as Alice
2525
assert subtensor.register_subnet(alice_wallet), "Unable to register the subnet"
@@ -32,9 +32,9 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
3232
coldkey_ss58=alice_wallet.coldkeypub.ss58_address,
3333
hotkey_ss58=alice_wallet.hotkey.ss58_address,
3434
)
35-
assert isinstance(stake_fee_0, Balance), "Stake fee should be a Balance object"
35+
assert isinstance(stake_fee_0, Balance), "Stake fee should be a Balance object."
3636
assert stake_fee_0 == min_stake_fee, (
37-
"Stake fee should be equal the minimum stake fee"
37+
"Stake fee should be equal the minimum stake fee."
3838
)
3939

4040
# Test unstake fee
@@ -44,9 +44,11 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
4444
coldkey_ss58=alice_wallet.coldkeypub.ss58_address,
4545
hotkey_ss58=bob_wallet.hotkey.ss58_address,
4646
)
47-
assert isinstance(unstake_fee_root, Balance), "Stake fee should be a Balance object"
48-
assert unstake_fee_root == Balance.from_rao(299076829), (
49-
"Root unstake fee should be 0."
47+
assert isinstance(unstake_fee_root, Balance), (
48+
"Stake fee should be a Balance object."
49+
)
50+
assert unstake_fee_root == min_stake_fee, (
51+
"Root unstake fee should be equal the minimum stake fee."
5052
)
5153

5254
# Test various stake movement scenarios

0 commit comments

Comments
 (0)