Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed Dec 18, 2020
1 parent 3981a8d commit 8e404a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/rest/admin/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
)

Expand Down

0 comments on commit 8e404a1

Please sign in to comment.