refactor: Make acting_user a mandatory kwarg for do_deactivate_realm.

This commit is contained in:
shanukun
2021-04-02 20:41:25 +05:30
committed by Tim Abbott
parent 626cf52723
commit 4b00e5da72
14 changed files with 29 additions and 28 deletions

View File

@@ -1499,7 +1499,7 @@ class NormalActionsTest(BaseAction):
def test_do_deactivate_realm(self) -> None:
realm = self.user_profile.realm
action = lambda: do_deactivate_realm(realm)
action = lambda: do_deactivate_realm(realm, acting_user=None)
# We delete sessions of all active users when a realm is
# deactivated, and redirect them to a deactivated page in