Skip to content

Commit

Permalink
Add test for coro in local
Browse files Browse the repository at this point in the history
  • Loading branch information
Akm0d committed Aug 27, 2024
1 parent 363528d commit b7b04a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,11 @@ async def test_aeval_valid_await_syntax():
local = {"aecho": aecho}
result = await aeval(expression, local)
assert result == 10


@pytest.mark.asyncio
async def test_aeval_coro_in_local():
expression = "await coro"
local = {"coro": aecho(10)}
result = await aeval(expression, local)
assert result == 10

0 comments on commit b7b04a0

Please sign in to comment.