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:
michellethomas
2018-02-06 12:38:07 -08:00
committed by Grace Guo
parent 2d8a0cc6c9
commit 19a0827d1f
2 changed files with 19 additions and 0 deletions

View File

@@ -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