From f9c2fa21ec0e68c5deb240be17aed347ba4867cd Mon Sep 17 00:00:00 2001 From: burnettk Date: Thu, 20 Oct 2022 07:15:20 -0400 Subject: [PATCH] lint --- .../unit/test_service_task_delegate.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tests/spiffworkflow_backend/unit/test_service_task_delegate.py b/tests/spiffworkflow_backend/unit/test_service_task_delegate.py index fd87982b..b0022a5d 100644 --- a/tests/spiffworkflow_backend/unit/test_service_task_delegate.py +++ b/tests/spiffworkflow_backend/unit/test_service_task_delegate.py @@ -1,36 +1,32 @@ """Test_various_bpmn_constructs.""" from flask.app import Flask +from tests.spiffworkflow_backend.helpers.base_test import BaseTest + from spiffworkflow_backend.services.secret_service import SecretService from spiffworkflow_backend.services.service_task_service import ServiceTaskDelegate -from spiffworkflow_backend.services.user_service import UserService -from tests.spiffworkflow_backend.helpers.base_test import BaseTest -from tests.spiffworkflow_backend.helpers.test_data import load_test_spec - -from spiffworkflow_backend.services.process_instance_processor import ( - ProcessInstanceProcessor, -) -from spiffworkflow_backend.services.process_instance_service import ( - ProcessInstanceService, -) class TestServiceTaskDelegate(BaseTest): + """TestServiceTaskDelegate.""" def test_normalize_value_without_secret( self, app: Flask, with_db_and_bpmn_file_cleanup: None ) -> None: + """Test_normalize_value_without_secret.""" result = ServiceTaskDelegate.normalize_value("hey") assert result == "hey" def test_normalize_value_with_int( self, app: Flask, with_db_and_bpmn_file_cleanup: None ) -> None: + """Test_normalize_value_with_int.""" result = ServiceTaskDelegate.normalize_value(1) assert result == 1 def test_normalize_value_with_secret( self, app: Flask, with_db_and_bpmn_file_cleanup: None ) -> None: + """Test_normalize_value_with_secret.""" user = self.find_or_create_user("test_user") SecretService().add_secret("hot_secret", "my_secret_value", user.id) result = ServiceTaskDelegate.normalize_value("secret:hot_secret")