Skip to content

Commit

Permalink
fix: add assertSuccess to testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin9038 committed Apr 12, 2022
1 parent b5aede2 commit 33b6c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion backend/contest/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/oj/views/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ export default {
ProblemSidebar,
login,
register,
profileSetting,
Table,
VueResizable,
UserSetting
Expand Down

0 comments on commit 33b6c19

Please sign in to comment.