mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
String in request body should be bytes.
This commit is contained in:
@@ -18,7 +18,7 @@ def test_response_should_have_headers_field():
|
|||||||
"content-type": ["text/html; charset=utf-8"],
|
"content-type": ["text/html; charset=utf-8"],
|
||||||
},
|
},
|
||||||
"body": {
|
"body": {
|
||||||
"string": ""
|
"string": b""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
response = VCRHTTPResponse(recorded_response)
|
response = VCRHTTPResponse(recorded_response)
|
||||||
@@ -29,7 +29,7 @@ def test_response_should_have_headers_field():
|
|||||||
def test_response_headers_should_be_equal_to_msg():
|
def test_response_headers_should_be_equal_to_msg():
|
||||||
recorded_response = {
|
recorded_response = {
|
||||||
"status": {
|
"status": {
|
||||||
"message": "OK",
|
"message": b"OK",
|
||||||
"code": 200
|
"code": 200
|
||||||
},
|
},
|
||||||
"headers": {
|
"headers": {
|
||||||
@@ -39,7 +39,7 @@ def test_response_headers_should_be_equal_to_msg():
|
|||||||
"content-type": ["text/html; charset=utf-8"],
|
"content-type": ["text/html; charset=utf-8"],
|
||||||
},
|
},
|
||||||
"body": {
|
"body": {
|
||||||
"string": ""
|
"string": b""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
response = VCRHTTPResponse(recorded_response)
|
response = VCRHTTPResponse(recorded_response)
|
||||||
@@ -59,7 +59,7 @@ def test_response_headers_should_have_correct_values():
|
|||||||
"content-type": ["text/html; charset=utf-8"],
|
"content-type": ["text/html; charset=utf-8"],
|
||||||
},
|
},
|
||||||
"body": {
|
"body": {
|
||||||
"string": ""
|
"string": b""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
response = VCRHTTPResponse(recorded_response)
|
response = VCRHTTPResponse(recorded_response)
|
||||||
|
|||||||
Reference in New Issue
Block a user