Skip to content

Commit 43bb86b

Browse files
🚨 Fix pydantic warnings in tests.
1 parent 2eda136 commit 43bb86b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/test_body_serialization.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ def op(
118118

119119
adapter, _ = process_operation_method(Client.op, get('/path'))
120120

121-
request, _ = adapter.build_request(client, dict(body=[GenericBodyModel(a=BodyModel(a='a'))]))
121+
request, _ = adapter.build_request(client, dict(body=[GenericBodyModel[BodyModel](a=BodyModel(a='a'))]))
122122
assert request.content == b'[{"a":{"a":"a"}}]'
123123

124-
request, _ = adapter.build_request(client, dict(body=GenericBodyModel(a=BodyModel(a='a'))))
124+
request, _ = adapter.build_request(client, dict(body=GenericBodyModel[BodyModel](a=BodyModel(a='a'))))
125125
assert request.content == b'{"a":{"a":"a"}}'
126126

127127
request, _ = adapter.build_request(client, dict(body=BodyModel(a='a')))

0 commit comments

Comments
 (0)