feat: datasource access to allow more granular access to tables on SQL Lab (#18064)

This commit is contained in:
Victor Arbues
2022-02-09 14:05:25 +00:00
committed by GitHub
parent fdbcbb5c84
commit 5ee070c402
4 changed files with 89 additions and 15 deletions

View File

@@ -219,8 +219,10 @@ class TestDatasetApi(SupersetTestCase):
rv = self.client.get(uri)
assert rv.status_code == 200
response = json.loads(rv.data.decode("utf-8"))
assert response["count"] == 0
assert response["result"] == []
assert response["count"] == 1
main_db = get_main_database()
assert filter(lambda x: x.text == main_db, response["result"]) != []
@pytest.mark.usefixtures("load_energy_table_with_slice")
def test_get_dataset_item(self):