diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py index a5a6d4b63..97c879965 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/service_task_service.py @@ -23,7 +23,7 @@ class ServiceTaskDelegate: @staticmethod def check_prefixes(value: Any) -> Any: - + """Check_prefixes.""" if isinstance(value, str): secret_prefix = "secret:" # noqa: S105 if value.startswith(secret_prefix): diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_service_task_delegate.py b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_service_task_delegate.py index b0022a5df..95b557560 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_service_task_delegate.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_service_task_delegate.py @@ -9,25 +9,25 @@ from spiffworkflow_backend.services.service_task_service import ServiceTaskDeleg class TestServiceTaskDelegate(BaseTest): """TestServiceTaskDelegate.""" - def test_normalize_value_without_secret( + def test_check_prefixes_without_secret( self, app: Flask, with_db_and_bpmn_file_cleanup: None ) -> None: - """Test_normalize_value_without_secret.""" - result = ServiceTaskDelegate.normalize_value("hey") + """Test_check_prefixes_without_secret.""" + result = ServiceTaskDelegate.check_prefixes("hey") assert result == "hey" - def test_normalize_value_with_int( + def test_check_prefixes_with_int( self, app: Flask, with_db_and_bpmn_file_cleanup: None ) -> None: - """Test_normalize_value_with_int.""" - result = ServiceTaskDelegate.normalize_value(1) + """Test_check_prefixes_with_int.""" + result = ServiceTaskDelegate.check_prefixes(1) assert result == 1 - def test_normalize_value_with_secret( + def test_check_prefixes_with_secret( self, app: Flask, with_db_and_bpmn_file_cleanup: None ) -> None: - """Test_normalize_value_with_secret.""" + """Test_check_prefixes_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") + result = ServiceTaskDelegate.check_prefixes("secret:hot_secret") assert result == "my_secret_value"