mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
修改密码错误返回值导致CI测试不通过问题
This commit is contained in:
parent
ed16473d92
commit
82986dee1b
@ -79,7 +79,7 @@ class ContestAPITest(APITestCase):
|
||||
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user