From 42322db000c590a7224934d511c78998ec28e1d5 Mon Sep 17 00:00:00 2001 From: thegm445 Date: Fri, 1 Dec 2023 23:07:27 -0300 Subject: [PATCH] refactor(apps/tasks): tests names now dont have upper case on them --- apps/tasks/tests.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/tasks/tests.py b/apps/tasks/tests.py index 27bb0a5..8e60081 100644 --- a/apps/tasks/tests.py +++ b/apps/tasks/tests.py @@ -323,7 +323,7 @@ def test_handle_submission_with_wrong_output(self) -> None: fetch_redirect_response=True, ) - def test_submission_with_AC_status_increases_user_score(self) -> None: + def test_submission_has_accepted_status_increases_user_score(self) -> None: handle_submission( self.submission.code, self.task.id, self.submission.id ) @@ -334,7 +334,7 @@ def test_submission_with_AC_status_increases_user_score(self) -> None: self.assertEqual(self.submission.status, SubmissionStatus.ACCEPTED) self.assertEqual(self.user.score, self.task.score) - def test_submission_with_non_AC_status_does_not_increase_user_score( + def test_submission_without_accepted_status_does_not_increase_user_score( self, ) -> None: self.submission.code = 'print("Hello, Word")' @@ -347,7 +347,7 @@ def test_submission_with_non_AC_status_does_not_increase_user_score( self.assertEqual(self.user.score, 0) - def test_second_AC_submission_does_not_increase_user_score(self) -> None: + def test_repeated_accepted_submission_cant_sum_to_user_score(self) -> None: handle_submission.apply( args=(self.submission.code, self.task.id, self.submission.id) ) @@ -364,7 +364,6 @@ def test_second_AC_submission_does_not_increase_user_score(self) -> None: ) self.user.refresh_from_db() - self.assertEqual(self.user.score, self.task.score) def test_form_success_url(self) -> None: