Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues 109 #132

Merged
merged 14 commits into from
Oct 20, 2017
Prev Previous commit
Next Next commit
fixed 2.6 compat with order_by test
BlackVegetable committed Oct 19, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a672c89f8191ae2eaca8f980af64d7a3b2dbc71d
2 changes: 1 addition & 1 deletion keen/tests/client_tests.py
Original file line number Diff line number Diff line change
@@ -501,7 +501,7 @@ def test_order_by(self, get):
limit = 2
order_by = {"property_name": "result", "direction": keen.direction.DESCENDING}
resp = keen.count(collection, timeframe="today", group_by="number", order_by=order_by, limit=limit)
self.assertTrue("https://api.keen.io/3.0/projects/{}/queries/count".format(keen.project_id) in
self.assertTrue("https://api.keen.io/3.0/projects/{0}/queries/count".format(keen.project_id) in
get.call_args[0][0])
self.assertEqual(2, get.call_args[1]["params"]["limit"])
self.assertEqual(collection, get.call_args[1]["params"]["event_collection"])