mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Fixed error of inserializable json for druid test (#1213)
* Fixed error of inserializable json for druid test * Fixed indentation
This commit is contained in:
@@ -102,10 +102,6 @@ class DruidTests(CaravelTestCase):
|
||||
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]
|
||||
@@ -115,6 +111,11 @@ class DruidTests(CaravelTestCase):
|
||||
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&'
|
||||
|
||||
Reference in New Issue
Block a user