diff --git a/backend/contest/tests.py b/backend/contest/tests.py index 20b8eabb4..ebbf082eb 100644 --- a/backend/contest/tests.py +++ b/backend/contest/tests.py @@ -267,13 +267,17 @@ def test_create_problem_bank(self): self.create_user("2018123123", "123123") url = self.reverse("contest_bank_api") response = self.client.post(url, data={"contest_id": contest["id"]}) + self.assertSuccess(response) class UserContestAPITest(APITestCase): def setUp(self): # create contest admin = self.create_admin() - self.contest = Contest.objects.create(created_by=admin, **DEFAULT_CONTEST_DATA) + data = copy.deepcopy(DEFAULT_CONTEST_DATA) + data.pop("allowed_groups") + data.pop("prizes") + self.contest = Contest.objects.create(created_by=admin, **data) # create problem in contest data = copy.deepcopy(DEFAULT_PROBLEM_DATA) diff --git a/frontend/src/pages/oj/views/problem/Problem.vue b/frontend/src/pages/oj/views/problem/Problem.vue index c706ded3e..ecdd6ceff 100644 --- a/frontend/src/pages/oj/views/problem/Problem.vue +++ b/frontend/src/pages/oj/views/problem/Problem.vue @@ -348,7 +348,6 @@ export default { ProblemSidebar, login, register, - profileSetting, Table, VueResizable, UserSetting