dpgaspar commented on a change in pull request #9427: feat: Add post processing
to QueryObject
URL:
https://github.com/apache/incubator-superset/pull/9427#discussion_r405390585
##########
File path: tests/core_tests.py
##########
@@ -222,6 +261,13 @@ def test_api_v1_query_endpoint(self):
resp = json.loads(self.get_resp("/api/v1/query/", {"query_context":
data}))
self.assertEqual(resp[0]["rowcount"], 100)
+ def test_api_v1_query_endpoint_with_post_processing(self):
+ self.login(username="admin")
+ qc_dict = self._get_query_context_dict_with_post_processing()
+ data = json.dumps(qc_dict)
+ resp = json.loads(self.get_resp("/api/v1/query/", {"query_context":
data}))
Review comment:
Do you want to change to `/api/v1/chart/data` ? if yes let's more the tests
to the tests.charts.api_tests
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]