mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Adding dashboard add view (#4344)
* Adding DashboardAddView and setting show_columns on SLiceAddView * Adding tests for sliceaddview read api * Dedupe show_columns
This commit is contained in:
committed by
Grace Guo
parent
2d8a0cc6c9
commit
19a0827d1f
@@ -249,6 +249,13 @@ class CoreTests(SupersetTestCase):
|
||||
resp = self.client.get(url)
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
|
||||
def test_get_user_slices(self):
|
||||
self.login(username='admin')
|
||||
userid = appbuilder.sm.find_user('admin').id
|
||||
url = '/sliceaddview/api/read?_flt_0_created_by={}'.format(userid)
|
||||
resp = self.client.get(url)
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
|
||||
def test_slices_V2(self):
|
||||
# Add explore-v2-beta role to admin user
|
||||
# Test all slice urls as user with with explore-v2-beta role
|
||||
|
||||
Reference in New Issue
Block a user