Skip to content

Commit e1d654e

Browse files
committed
fix aw test
1 parent a6d0ca9 commit e1d654e

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

tests/integration/test_wallet_commands.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ def fake_create_wallet(self, wallet_name, workchain, version, subwallet):
7373

7474

7575
def 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

Comments
 (0)