diff --git a/src/tests/executor/test_executor.py b/src/tests/executor/test_executor.py index 70ccf1b..846b660 100644 --- a/src/tests/executor/test_executor.py +++ b/src/tests/executor/test_executor.py @@ -199,6 +199,11 @@ def awaitable_func() -> Awaitable[Any]: class TestJinjaExecutorSync(TestExecutorSync): use_jinja = True + def test_lambda_error(self): + lambda_func = lambda: 123 # noqa: E731 + with pytest.raises(ValueError, match="lambda function is not supported"): + self.executor(1).apply(lambda_func) + class TestJinjaExecutorAsync(TestExecutorAsync): use_jinja = True