diff --git a/backend/contest/tests.py b/backend/contest/tests.py index 0efae5502..71321b847 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 def6e74f0..168b82c58 100644 --- a/frontend/src/pages/oj/views/problem/Problem.vue +++ b/frontend/src/pages/oj/views/problem/Problem.vue @@ -347,7 +347,6 @@ export default { ProblemSidebar, login, register, - profileSetting, Table, VueResizable, UserSetting