Skip to content

Commit f62188b

Browse files
authored
Merge pull request #725 from andersk/body-default
Fix `MockRequest.body` type
2 parents 46639b5 + c59cbc5 commit f62188b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_core/testing/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
self.view_args = view_args
3232
self.headers = headers
3333
self.cookies = cookies
34-
self.body = data or ""
34+
self.body = data or b""
3535
self.content_type = content_type
3636

3737
self.parameters = RequestParameters(

0 commit comments

Comments
 (0)