@@ -424,13 +424,17 @@ def test_safe_staking_scenarios(subtensor, alice_wallet, bob_wallet):
424
424
rate_tolerance = 0.005 , # 0.5%
425
425
allow_partial_stake = False ,
426
426
)
427
- assert success is False
427
+ assert success is False , "Unstake should fail."
428
428
429
429
current_stake = subtensor .get_stake (
430
430
alice_wallet .coldkey .ss58_address ,
431
431
bob_wallet .hotkey .ss58_address ,
432
432
netuid = alice_subnet_netuid ,
433
433
)
434
+
435
+ logging .console .info (f"[orange]Current stake: { current_stake } [orange]" )
436
+ logging .console .info (f"[orange]Full stake: { full_stake } [orange]" )
437
+
434
438
assert current_stake == full_stake , (
435
439
"Stake should not change after failed unstake attempt"
436
440
)
@@ -454,6 +458,7 @@ def test_safe_staking_scenarios(subtensor, alice_wallet, bob_wallet):
454
458
bob_wallet .hotkey .ss58_address ,
455
459
netuid = alice_subnet_netuid ,
456
460
)
461
+ logging .console .info (f"[orange]Partial unstake: { partial_unstake } [orange]" )
457
462
assert partial_unstake > Balance (0 ), "Some stake should remain"
458
463
459
464
# 3. Higher threshold - should succeed fully
@@ -468,7 +473,7 @@ def test_safe_staking_scenarios(subtensor, alice_wallet, bob_wallet):
468
473
rate_tolerance = 0.3 , # 30%
469
474
allow_partial_stake = False ,
470
475
)
471
- assert success is True
476
+ assert success is True , "Unstake should succeed"
472
477
473
478
474
479
def test_safe_swap_stake_scenarios (subtensor , alice_wallet , bob_wallet ):
0 commit comments