Skip to content

Commit 7352ea1

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

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/e2e_tests/test_metagraph.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,21 @@ 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, metagraph_info.tao_dividends_per_hotkey[0]),
396-
(bob_wallet.hotkey.ss58_address, metagraph_info.tao_dividends_per_hotkey[1]),
395+
(
396+
alice_wallet.hotkey.ss58_address,
397+
metagraph_info.tao_dividends_per_hotkey[0][1],
398+
),
399+
(bob_wallet.hotkey.ss58_address, metagraph_info.tao_dividends_per_hotkey[1][1]),
397400
]
398401
assert metagraph_info.alpha_dividends_per_hotkey == [
399402
(
400403
alice_wallet.hotkey.ss58_address,
401-
metagraph_info.alpha_dividends_per_hotkey[0],
404+
metagraph_info.alpha_dividends_per_hotkey[0][1],
405+
),
406+
(
407+
bob_wallet.hotkey.ss58_address,
408+
metagraph_info.alpha_dividends_per_hotkey[1][1],
402409
),
403-
(bob_wallet.hotkey.ss58_address, metagraph_info.alpha_dividends_per_hotkey[1]),
404410
]
405411

406412
alice_subnet_netuid = subtensor.get_total_subnets() # 3

0 commit comments

Comments
 (0)