Skip to content

Commit 3cc54ef

Browse files
author
Roman
committed
avoid dynamic amounts related assertions errors for metagraph_info
1 parent f879848 commit 3cc54ef

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/e2e_tests/test_metagraph.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,15 @@ def test_metagraph_info(subtensor, alice_wallet, bob_wallet):
392392
bob_wallet.coldkey.ss58_address,
393393
]
394394
assert metagraph_info.tao_dividends_per_hotkey == [
395-
(alice_wallet.hotkey.ss58_address, Balance(0)),
396-
(bob_wallet.hotkey.ss58_address, Balance(0)),
395+
(alice_wallet.hotkey.ss58_address, metagraph_info.tao_dividends_per_hotkey[0]),
396+
(bob_wallet.hotkey.ss58_address, metagraph_info.tao_dividends_per_hotkey[1]),
397397
]
398398
assert metagraph_info.alpha_dividends_per_hotkey == [
399-
(alice_wallet.hotkey.ss58_address, Balance(0)),
400-
(bob_wallet.hotkey.ss58_address, Balance(0)),
399+
(
400+
alice_wallet.hotkey.ss58_address,
401+
metagraph_info.alpha_dividends_per_hotkey[0],
402+
),
403+
(bob_wallet.hotkey.ss58_address, metagraph_info.alpha_dividends_per_hotkey[1]),
401404
]
402405

403406
alice_subnet_netuid = subtensor.get_total_subnets() # 3

0 commit comments

Comments
 (0)