We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2038922 commit 2a3896dCopy full SHA for 2a3896d
tests/test_middleware.py
@@ -17,7 +17,8 @@ def setUp(self):
17
18
def test_graphiql(self):
19
request = self.request_factory.get("/")
20
- http_response = HttpResponse(headers={"Content-Length": 0})
+ http_response = HttpResponse()
21
+ http_response["Content-Length"] = 0
22
get_response_mock = Mock(return_value=http_response)
23
24
middleware = self.middleware(get_response_mock)
0 commit comments