Skip to content

Commit

Permalink
fix: test_regular_user_validate_contest_password
Browse files Browse the repository at this point in the history
  • Loading branch information
HULANG-BTB committed Oct 22, 2020
1 parent 810603a commit e4bc874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contest/tests.py
Original file line number Diff line number Diff line change
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 e4bc874

Please sign in to comment.