Accept Merge Request #158 更新 : (dev-sxw -> for-contest)
Merge Request: 更新 Created By: @esp Accepted By: @esp URL: https://coding.net/u/virusdefender/p/qduoj/git/merge/158
This commit is contained in:
@@ -144,7 +144,7 @@ class ProblemAdminTest(APITestCase):
|
||||
self.assertEqual(response.data, {"code": 1, "data": u"题目不存在"})
|
||||
|
||||
def test_query_problem_exists(self):
|
||||
data = {"problem_id": 1}
|
||||
data = {"problem_id": self.problem.id}
|
||||
response = self.client.get(self.url, data=data)
|
||||
self.assertEqual(response.data["code"], 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user