Skip to content

Commit

Permalink
Fixed error of inserializable json for druid test (#1213)
Browse files Browse the repository at this point in the history
* Fixed error of inserializable json for druid test

* Fixed indentation
  • Loading branch information
vera-liu authored Sep 29, 2016
1 parent 9c83b90 commit aa5bbe6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/druid_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ def test_client(self, PyDruid):
datasource_id = cluster.datasources[0].id
db.session.commit()

resp = self.client.get('/caravel/explore/druid/{}/'.format(
datasource_id))
assert "[test_cluster].[test_datasource]" in resp.data.decode('utf-8')

nres = [
list(v['event'].items()) + [('timestamp', v['timestamp'])]
for v in GB_RESULT_SET]
Expand All @@ -115,6 +111,11 @@ def test_client(self, PyDruid):
instance.export_pandas.return_value = df
instance.query_dict = {}
instance.query_builder.last_query.query_dict = {}

resp = self.client.get('/caravel/explore/druid/{}/'.format(
datasource_id))
assert "[test_cluster].[test_datasource]" in resp.data.decode('utf-8')

resp = self.client.get(
'/caravel/explore/druid/{}/?viz_type=table&granularity=one+day&'
'druid_time_origin=&since=7+days+ago&until=now&row_limit=5000&'
Expand Down

0 comments on commit aa5bbe6

Please sign in to comment.