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

Commit

Permalink
test(apps/tasks): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
HladczukLe committed Dec 10, 2023
1 parent fcbd193 commit 587c982
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/tasks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,9 @@ def test_handle_uploaded_file(self) -> None:
handle_uploaded_file(request, self.task.id, self.submission.id)

self.submission.refresh_from_db()
self.assertEqual(self.submission.status, "WJ")
self.assertEqual(
self.submission.status, SubmissionStatus.WAITING_JUDGE
)

file_path = os.path.join("apps/tasks/uploads/", "test_file.txt")
self.assertTrue(os.path.exists(file_path))
Expand Down

0 comments on commit 587c982

Please sign in to comment.