Skip to content

Commit

Permalink
fix request.POST
Browse files Browse the repository at this point in the history
  • Loading branch information
folt committed Dec 1, 2020
1 parent d58f408 commit 831ac29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/panels/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_query_dict_for_request_in_method_post(self):
Test verifies the correctness of the statistics generation method
in the case when the POST request is class QueryDict
"""
self.request.GET = QueryDict("foo=bar")
self.request.POST = QueryDict("foo=bar")
response = self.panel.process_request(self.request)
self.panel.generate_stats(self.request, response)
# ensure the panel POST request data is processed correctly.
Expand All @@ -77,7 +77,7 @@ def test_dict_for_request_in_method_post(self):
Test verifies the correctness of the statistics generation method
in the case when the POST request is class Dict
"""
self.request.GET = {"foo": "bar"}
self.request.POST = {"foo": "bar"}
response = self.panel.process_request(self.request)
self.panel.generate_stats(self.request, response)
# ensure the panel POST request data is processed correctly.
Expand Down

0 comments on commit 831ac29

Please sign in to comment.