From 241f8202c8ff1f7804061e7aa9e798be4d2b3855 Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Date: Mon, 23 Sep 2024 14:21:35 +0500 Subject: [PATCH] test: verifing test cases 21 --- .github/workflows/unit-tests.yml | 8 ++++---- .../commands/tests/test_recalculate_subsection_grades.py | 6 +++++- lms/djangoapps/grades/tests/utils.py | 6 +++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3e442b75d4e7..5110fa2942d5 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -33,14 +33,14 @@ jobs: - "lms-6" - "openedx-1-with-lms" - "openedx-2-with-lms" - - "openedx-1-with-cms" - - "openedx-2-with-cms" + # - "openedx-1-with-cms" + # - "openedx-2-with-cms" - "cms-1" - "cms-2" - "common-with-lms" - - "common-with-cms" + # - "common-with-cms" - "xmodule-with-lms" - - "xmodule-with-cms" + # - "xmodule-with-cms" mongo-version: - "7.0" diff --git a/lms/djangoapps/grades/management/commands/tests/test_recalculate_subsection_grades.py b/lms/djangoapps/grades/management/commands/tests/test_recalculate_subsection_grades.py index 2e5561d70705..192aff71cd47 100644 --- a/lms/djangoapps/grades/management/commands/tests/test_recalculate_subsection_grades.py +++ b/lms/djangoapps/grades/management/commands/tests/test_recalculate_subsection_grades.py @@ -67,7 +67,11 @@ def _run_command_and_check_output(self, task_mock, score_db_table, include_anony "course_id": 'course-v1:x+y+z', "usage_id": 'abc', "only_if_higher": False, - "expected_modified_time": to_timestamp(datetime.strptime('2016-08-23 16:43', DATE_FORMAT).replace(tzinfo=ZoneInfo("UTC"))), + "expected_modified_time": to_timestamp( + datetime.strptime('2016-08-23 16:43', DATE_FORMAT).replace( + tzinfo=ZoneInfo("UTC") + ) + ), "score_deleted": False, "event_transaction_id": str(get_event_transaction_id()), "event_transaction_type": 'edx.grades.problem.submitted', diff --git a/lms/djangoapps/grades/tests/utils.py b/lms/djangoapps/grades/tests/utils.py index 55fff6a4ff51..08a09812da13 100644 --- a/lms/djangoapps/grades/tests/utils.py +++ b/lms/djangoapps/grades/tests/utils.py @@ -52,7 +52,11 @@ def mock_get_score(earned=0, possible=1, first_attempted=datetime(2000, 1, 1, 0, @contextmanager -def mock_get_submissions_score(earned=0, possible=1, first_attempted=datetime(2000, 1, 1, 0, 0, 0, tzinfo=ZoneInfo("UTC"))): +def mock_get_submissions_score( + earned=0, + possible=1, + first_attempted=datetime(2000, 1, 1, 0, 0, 0, tzinfo=ZoneInfo("UTC")), +): """ Mocks the _get_submissions_score function to return the specified values """