From 1d6bbd9f1ea9c94844fd18ed3264905b71baa945 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 11 Jan 2023 17:46:39 -0500 Subject: [PATCH] mypy --- .../spiffworkflow_backend/services/error_handling_service.py | 2 +- .../tests/spiffworkflow_backend/integration/test_process_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py index 1c8e66a3..5d6346d7 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py @@ -76,7 +76,7 @@ class ErrorHandlingService: def handle_system_notification( error: Union[ApiError, Exception], recipients: List, - ): + ) -> Response: message_payload = { 'my_var': 'my_value', 'error': error.__repr__(), diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py index efc22ab5..d4e630f3 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py @@ -2160,7 +2160,7 @@ class TestProcessApi(BaseTest): assert process is not None assert process.status == "suspended" - def test_error_handler_system_notification(self): + def test_error_handler_system_notification(self) -> None: """Test_error_handler_system_notification.""" # TODO: make sure the system notification process is run on exceptions ...