Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
refactor(apps/tasks): fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thegm445 committed Dec 2, 2023
1 parent 47ad8f3 commit 6bd1d58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/tasks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ def test_handle_submission_with_wrong_output(self) -> None:
)

def test_submission_has_accepted_status_increases_user_score(self) -> None:
handle_submission(
self.submission.code, self.task.id, self.submission.id
handle_submission.apply(
args=(self.submission.code, self.task.id, self.submission.id)
)

self.submission.refresh_from_db()
Expand All @@ -344,7 +344,6 @@ def test_submission_without_accepted_status_does_not_increase_user_score(
)

self.user.refresh_from_db()

self.assertEqual(self.user.score, 0)

def test_repeated_accepted_submission_cant_sum_to_user_score(self) -> None:
Expand Down

0 comments on commit 6bd1d58

Please sign in to comment.