Skip to content

Commit

Permalink
Updating strr api version of auto approval (#229)
Browse files Browse the repository at this point in the history
* Updating strr api version of auto approval

* no message

* no message
  • Loading branch information
kris-daxiom authored Oct 26, 2024
1 parent 80367b7 commit be76f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions jobs/auto-approval/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions jobs/auto-approval/src/auto_approval/tests/test_job.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=W0613
"""
Unit tests for the auto_approval.job module.
Expand Down Expand Up @@ -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",
Expand All @@ -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)

0 comments on commit be76f54

Please sign in to comment.