Skip to content

Commit

Permalink
fix(test): 修复错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
helsonxiao committed Nov 29, 2020
1 parent 6dda495 commit a4a66d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contest/tests.py
Expand Up @@ -79,7 +79,7 @@ def test_regular_user_validate_contest_password(self):
self.create_user("test", "test123")
url = self.reverse("contest_password_api")
resp = self.client.post(url, {"contest_id": self.contest.id, "password": "error_password"})
self.assertDictEqual(resp.data, {"error": "error", "data": "Wrong password"})
self.assertDictEqual(resp.data, {"error": "error", "data": "Wrong password or password expired"})

resp = self.client.post(url, {"contest_id": self.contest.id, "password": DEFAULT_CONTEST_DATA["password"]})
self.assertSuccess(resp)
Expand Down

0 comments on commit a4a66d2

Please sign in to comment.