Skip to content
Prev Previous commit
Next Next commit
Fix identity mock to return content-type as string
  • Loading branch information
lmazuel committed Jul 26, 2019
commit f1c8a577532ea2f5b1a9c7db5d0e1832f1872af5
2 changes: 1 addition & 1 deletion sdk/identity/azure-identity/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def mock_response(status_code=200, headers={}, json_payload=None):
if json_payload is not None:
response.text = lambda: json.dumps(json_payload)
response.headers["content-type"] = "application/json"
response.content_type = ["application/json"]
response.content_type = "application/json"
return response


Expand Down