Skip to content

Commit c59cbc5

Browse files
committed
Fix MockRequest.body type
Commit 0031ff7 changed data from str to bytes, but forgot to adjust this default value. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent 46639b5 commit c59cbc5

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)