From c81408dd9fa9dbba6472b278053e2ef14e84e660 Mon Sep 17 00:00:00 2001 From: jimin9038 Date: Tue, 12 Apr 2022 06:26:42 +0000 Subject: [PATCH] fix: add assertSuccess to testcase --- backend/contest/tests.py | 1 + frontend/src/pages/oj/views/problem/Problem.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/contest/tests.py b/backend/contest/tests.py index 0efae5502..829db2c8c 100644 --- a/backend/contest/tests.py +++ b/backend/contest/tests.py @@ -267,6 +267,7 @@ 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): 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