@@ -63,7 +63,9 @@ async def test_subtensor_extrinsics(subtensor, templates, alice_wallet, bob_wall
6363 pre_subnet_creation_cost = await subtensor .get_subnet_burn_cost ()
6464
6565 # Register subnet
66- assert await subtensor .register_subnet (alice_wallet ), "Unable to register the subnet"
66+ assert await subtensor .register_subnet (
67+ alice_wallet ,
68+ ), "Unable to register the subnet"
6769
6870 # Subnet burn cost is increased immediately after a subnet is registered
6971 post_subnet_creation_cost = await subtensor .get_subnet_burn_cost ()
@@ -74,7 +76,9 @@ async def test_subtensor_extrinsics(subtensor, templates, alice_wallet, bob_wall
7476 ), "Burn cost did not change after subnet creation"
7577
7678 # Assert amount is deducted once a subnetwork is registered by Alice
77- alice_balance_post_sn = await subtensor .get_balance (alice_wallet .coldkeypub .ss58_address )
79+ alice_balance_post_sn = await subtensor .get_balance (
80+ alice_wallet .coldkeypub .ss58_address ,
81+ )
7882 assert (
7983 alice_balance_post_sn + pre_subnet_creation_cost == initial_alice_balance
8084 ), "Balance is the same even after registering a subnet"
@@ -98,7 +102,9 @@ async def test_subtensor_extrinsics(subtensor, templates, alice_wallet, bob_wall
98102 netuid ,
99103 ], "Alice is not registered to netuid 2 as expected"
100104 assert (
101- await subtensor .get_netuids_for_hotkey (hotkey_ss58 = bob_wallet .hotkey .ss58_address )
105+ await subtensor .get_netuids_for_hotkey (
106+ hotkey_ss58 = bob_wallet .hotkey .ss58_address ,
107+ )
102108 == []
103109 ), "Bob is unexpectedly registered to some netuid"
104110
@@ -143,7 +149,9 @@ async def test_subtensor_extrinsics(subtensor, templates, alice_wallet, bob_wall
143149
144150 # Fetch recycle_amount to register to the subnet
145151 recycle_amount = await subtensor .recycle (netuid )
146- bob_balance_post_reg = await subtensor .get_balance (bob_wallet .coldkeypub .ss58_address )
152+ bob_balance_post_reg = await subtensor .get_balance (
153+ bob_wallet .coldkeypub .ss58_address ,
154+ )
147155
148156 # Ensure recycled amount is only deducted from the balance after registration
149157 assert (
0 commit comments