From 8e404a1f49dc9a6fd311a3de82b078fe3af8b135 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Fri, 18 Dec 2020 19:13:00 +0100 Subject: [PATCH] fix tests --- tests/rest/admin/test_user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py index 09040189662a..184bc1800649 100644 --- a/tests/rest/admin/test_user.py +++ b/tests/rest/admin/test_user.py @@ -621,7 +621,7 @@ def test_no_auth(self): """ Try to deactivate users without authentication. """ - request, channel = self.make_request("POST", self.url, b"{}") + channel = self.make_request("POST", self.url, b"{}") self.assertEqual(401, int(channel.result["code"]), msg=channel.result["body"]) self.assertEqual(Codes.MISSING_TOKEN, channel.json_body["errcode"]) @@ -705,7 +705,7 @@ def test_deactivate_user_erase_true(self): # Deactivate user body = json.dumps({"erase": True}) - request, channel = self.make_request( + channel = self.make_request( "POST", self.url, access_token=self.admin_user_tok, @@ -1189,7 +1189,7 @@ def test_deactivate_user(self): ) # Get user - request, channel = self.make_request( + channel = self.make_request( "GET", self.url_other_user, access_token=self.admin_user_tok, )