From be76f54528f0adbba596ce41becbb03d8f790175 Mon Sep 17 00:00:00 2001 From: kris-daxiom <143851280+kris-daxiom@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:34:28 -0700 Subject: [PATCH] Updating strr api version of auto approval (#229) * Updating strr api version of auto approval * no message * no message --- jobs/auto-approval/poetry.lock | 4 ++-- jobs/auto-approval/src/auto_approval/tests/test_job.py | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/jobs/auto-approval/poetry.lock b/jobs/auto-approval/poetry.lock index 1ae639a9..aaa6c5ac 100644 --- a/jobs/auto-approval/poetry.lock +++ b/jobs/auto-approval/poetry.lock @@ -2946,7 +2946,7 @@ url = ["furl (>=0.4.1)"] [[package]] name = "strr-api" -version = "0.0.16" +version = "0.0.17" description = "" optional = false python-versions = "^3.11" @@ -2983,7 +2983,7 @@ weasyprint = "^62.3" type = "git" url = "https://github.com/bcgov/STRR.git" reference = "main" -resolved_reference = "9f2bb9e33b3b7b54354832fa2d6cc0044909b320" +resolved_reference = "80367b761a04443e69c688146caa85a47bfd2d54" subdirectory = "strr-api" [[package]] diff --git a/jobs/auto-approval/src/auto_approval/tests/test_job.py b/jobs/auto-approval/src/auto_approval/tests/test_job.py index e9416021..6dbdb566 100644 --- a/jobs/auto-approval/src/auto_approval/tests/test_job.py +++ b/jobs/auto-approval/src/auto_approval/tests/test_job.py @@ -1,3 +1,4 @@ +# pylint: disable=W0613 """ Unit tests for the auto_approval.job module. @@ -204,12 +205,6 @@ def test_process_applications( mock_application2 = MagicMock() mock_application2.id = 2 mock_applications = [mock_application1, mock_application2] - mock_token = ( - "eyJhbGciOiJSUzI1NiIsImtpZCI6IjEiLCJ0eXAiOiJKV1QifQ." - "eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0Ijox" - "NTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" - ) - mock_auth_service.get_service_client_token.return_value = mock_token mock_approval_service.process_auto_approval.return_value = ( "APPROVED", "12345", @@ -223,5 +218,4 @@ def test_process_applications( calls = mock_approval_service.process_auto_approval.call_args_list for call, mock_instance in zip(calls, mock_applications): args, kwargs = call # pylint: disable=unused-variable - self.assertEqual(kwargs["token"], mock_token) self.assertEqual(kwargs["application"], mock_instance)