Skip to content

Commit 1181f2d

Browse files
authored
Merge pull request #1414 from folt/fix-1406
fix #1406
2 parents f92dee7 + 831ac29 commit 1181f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/panels/test_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_query_dict_for_request_in_method_post(self):
6464
Test verifies the correctness of the statistics generation method
6565
in the case when the POST request is class QueryDict
6666
"""
67-
self.request.GET = QueryDict("foo=bar")
67+
self.request.POST = QueryDict("foo=bar")
6868
response = self.panel.process_request(self.request)
6969
self.panel.generate_stats(self.request, response)
7070
# ensure the panel POST request data is processed correctly.
@@ -77,7 +77,7 @@ def test_dict_for_request_in_method_post(self):
7777
Test verifies the correctness of the statistics generation method
7878
in the case when the POST request is class Dict
7979
"""
80-
self.request.GET = {"foo": "bar"}
80+
self.request.POST = {"foo": "bar"}
8181
response = self.panel.process_request(self.request)
8282
self.panel.generate_stats(self.request, response)
8383
# ensure the panel POST request data is processed correctly.

0 commit comments

Comments
 (0)