Skip to content

Commit

Permalink
fix: tests and example
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchet-temporary committed Nov 29, 2024
1 parent ebca8c8 commit 6f354cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/pydantic/test_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
# requires scope module or higher for shared event loop
@pytest.mark.asyncio(scope="session")
async def test_run(hatchet: Hatchet):
run = hatchet.admin.run_workflow("Parent", {})
run = hatchet.admin.run_workflow(
"Parent",
{},
)
result = await run.result()

assert len(result["spawn"]) == 3
2 changes: 1 addition & 1 deletion examples/pydantic/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Parent:
async def spawn(self, context: Context):
child = await context.aio.spawn_workflow(
"Child",
{"a": 1, "b": 10},
{"a": 1, "b": "10"},
options={"additional_metadata": {}},
)

Expand Down

0 comments on commit 6f354cd

Please sign in to comment.