Skip to content

Commit c972738

Browse files
committed
Fixup
1 parent 554f63d commit c972738

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/contrib/pydantic/test_pydantic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
PydanticModelWithStrictFieldWorkflow,
2727
RoundTripMiscObjectsWorkflow,
2828
RoundTripPydanticObjectsWorkflow,
29-
ValidationErrorWorkflow,
3029
_test_pydantic_model_with_strict_field,
3130
clone_objects,
3231
misc_objects_activity,
@@ -315,11 +314,11 @@ async def test_validation_error(client: Client):
315314
async with Worker(
316315
client,
317316
task_queue=task_queue_name,
318-
workflows=[ValidationErrorWorkflow],
317+
workflows=[NoTypeAnnotationsWorkflow],
319318
):
320319
with pytest.raises(pydantic.ValidationError):
321320
await client.execute_workflow(
322-
"ValidationErrorWorkflow",
321+
"NoTypeAnnotationsWorkflow",
323322
"not-an-int",
324323
id=str(uuid.uuid4()),
325324
task_queue=task_queue_name,

tests/contrib/pydantic/workflows.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,3 @@ class NoTypeAnnotationsWorkflow:
173173
@workflow.run
174174
async def run(self, arg):
175175
return arg
176-
177-
178-
@workflow.defn
179-
class ValidationErrorWorkflow:
180-
@workflow.run
181-
async def run(self, arg):
182-
return arg

0 commit comments

Comments
 (0)