mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-03 15:19:44 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
13 lines
302 B
Python
13 lines
302 B
Python
import pytest
|
|
|
|
from examples.lifespans.simple import Lifespan, lifespan_task
|
|
|
|
|
|
@pytest.mark.asyncio(loop_scope="session")
|
|
async def test_lifespans() -> None:
|
|
result = await lifespan_task.aio_run()
|
|
|
|
assert isinstance(result, Lifespan)
|
|
assert result.pi == 3.14
|
|
assert result.foo == "bar"
|