From eb13bcd49da5f4fd69278955faf58ed60ad2a853 Mon Sep 17 00:00:00 2001 From: AloneH Date: Thu, 22 Oct 2020 09:32:48 +0800 Subject: [PATCH] fix: test_regular_user_validate_contest_password --- contest/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/tests.py b/contest/tests.py index 4c160049a..a92e09ae5 100644 --- a/contest/tests.py +++ b/contest/tests.py @@ -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)