mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Implement a React-based table editor (#5186)
* A React table editor * addressing comments * Fix SelectAsyncControl error on clear * fix tests * more corrections * Removed <strong>
This commit is contained in:
committed by
GitHub
parent
aa14bac5c7
commit
68ba63fcd9
@@ -516,6 +516,21 @@ class DruidTests(SupersetTestCase):
|
||||
instance.timeseries.call_args[1]['granularity']['period'],
|
||||
)
|
||||
|
||||
@patch('superset.connectors.druid.models.PyDruid')
|
||||
def test_external_metadata(self, PyDruid):
|
||||
self.login(username='admin')
|
||||
self.login(username='admin')
|
||||
cluster = self.get_cluster(PyDruid)
|
||||
cluster.refresh_datasources()
|
||||
datasource = cluster.datasources[0]
|
||||
url = '/datasource/external_metadata/druid/{}/'.format(datasource.id)
|
||||
resp = self.get_json_resp(url)
|
||||
col_names = {o.get('name') for o in resp}
|
||||
self.assertEquals(
|
||||
col_names,
|
||||
{'__time', 'dim1', 'dim2', 'metric1'},
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user