diff --git a/src/viadot/orchestration/prefect/utils.py b/src/viadot/orchestration/prefect/utils.py index 4e3c8ee20..b77c17deb 100644 --- a/src/viadot/orchestration/prefect/utils.py +++ b/src/viadot/orchestration/prefect/utils.py @@ -395,7 +395,8 @@ def _process_string(self, text: str) -> list[str] | str: It bases on specific patterns or pendulum dates. Args: - text (str): A string containing various time-related patterns to be analyzed. + text (str): A string containing various time-related patterns + to be analyzed. Returns: list or string: diff --git a/tests/unit/orchestration/prefect/test_utils.py b/tests/unit/orchestration/prefect/test_utils.py index f45746131..9f7c2678f 100644 --- a/tests/unit/orchestration/prefect/test_utils.py +++ b/tests/unit/orchestration/prefect/test_utils.py @@ -89,7 +89,7 @@ def test_process_eval_date_success(setup_dates): assert replaced_text == expected_text -def test_process_eval_date_fail(setup_dates): +def test_process_eval_date_fail(): """Test if process_dates function works with a pendulum code.""" text = "Yesterday was <<(pendulum.today().subtract(days=1))>>." # It should not start with `(` with pytest.raises(TypeError):