Merge branch 'dev' into hohoTT-dev

Conflicts:
	contest/views.py
This commit is contained in:
hohoTT
2015-09-07 20:01:59 +08:00
18 changed files with 262 additions and 43 deletions

View File

@@ -373,7 +373,7 @@ class ContestProblemAdminAPItEST(APITestCase):
def test_query_contest_problem_exists_by_contest_id(self):
self.client.login(username="test3", password="testaa")
response = self.client.get(self.url + "?contest_id=1")
response = self.client.get(self.url + "?contest_id="+ str(self.global_contest.id))
self.assertEqual(response.data["code"], 0)
self.assertEqual(len(response.data["data"]), 0)