@@ -73,6 +73,10 @@ def fake_create_wallet(self, wallet_name, workchain, version, subwallet):
7373
7474
7575def test_aw (cli , ton , monkeypatch , mocker : MockerFixture ):
76+ # Bad args
77+ output = cli .execute ("aw" , no_color = True )
78+ assert "Bad args" in output
79+
7680 get_local_wallet_mock = mocker .Mock ()
7781 activate_wallet_mock = mocker .Mock ()
7882 wallets_check_mock = mocker .Mock ()
@@ -92,18 +96,7 @@ def test_aw(cli, ton, monkeypatch, mocker: MockerFixture):
9296 get_local_wallet_mock .reset_mock ()
9397 activate_wallet_mock .reset_mock ()
9498 wallets_check_mock .reset_mock ()
95- output = cli .execute ("aw all" , no_color = True )
96-
97- get_local_wallet_mock .assert_not_called ()
98- activate_wallet_mock .assert_not_called ()
99- wallets_check_mock .assert_called_once ()
100- assert "ActivateWallet - OK" in output
101-
102- # no args, same as all
103- get_local_wallet_mock .reset_mock ()
104- activate_wallet_mock .reset_mock ()
105- wallets_check_mock .reset_mock ()
106- output = cli .execute ("aw" , no_color = True )
99+ output = cli .execute ("aw --all" , no_color = True )
107100
108101 get_local_wallet_mock .assert_not_called ()
109102 activate_wallet_mock .assert_not_called ()
0 commit comments