Skip to content

Commit 2a3896d

Browse files
author
mongkok
committed
Fixed HttpResponse init got an unexpected keyword argument 'headers'
1 parent 2038922 commit 2a3896d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_middleware.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def setUp(self):
1717

1818
def test_graphiql(self):
1919
request = self.request_factory.get("/")
20-
http_response = HttpResponse(headers={"Content-Length": 0})
20+
http_response = HttpResponse()
21+
http_response["Content-Length"] = 0
2122
get_response_mock = Mock(return_value=http_response)
2223

2324
middleware = self.middleware(get_response_mock)

0 commit comments

Comments
 (0)