Skip to content

Commit 98a0e9a

Browse files
committed
fix(commands/offboard): pass along args to signout, delete
1 parent fe4c044 commit 98a0e9a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

compiler_admin/commands/offboard.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def offboard(args: Namespace) -> int:
6767

6868
res += CallGAMCommand(("user", account, "deprovision", "popimap"))
6969

70-
res += signout(account)
70+
res += signout(args)
7171

72-
res += delete(account)
72+
res += delete(args)
7373

7474
if alias_account:
7575
print(f"Adding an alias to account: {alias_account}")

tests/commands/test_offboard.py

+3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def test_offboard_confirm_yes(
7676
mock_NamedTemporaryFile.assert_called_once()
7777

7878
mock_commands_signout.assert_called_once()
79+
assert args in mock_commands_signout.call_args.args
80+
7981
mock_commands_delete.assert_called_once()
82+
assert args in mock_commands_delete.call_args.args
8083

8184

8285
@pytest.mark.usefixtures("mock_input_no")

0 commit comments

Comments
 (0)