mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
feat: datasource access to allow more granular access to tables on SQL Lab (#18064)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user