Skip to content

Commit

Permalink
tests: jinja lambda_error
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Oct 3, 2024
1 parent a9f2358 commit 8f1bcd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/executor/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f1bcd7

Please sign in to comment.