mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
fix: Show sqllab state when deleting databases (#17331)
* saving * fix ts * update test * update test * log unit * updated test
This commit is contained in:
@@ -1989,3 +1989,13 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
def test_get_related_objects(self):
|
||||
example_db = get_example_database()
|
||||
self.login(username="admin")
|
||||
uri = f"api/v1/database/{example_db.id}/related_objects/"
|
||||
rv = self.client.get(uri)
|
||||
assert rv.status_code == 200
|
||||
assert "charts" in rv.json
|
||||
assert "dashboards" in rv.json
|
||||
assert "sqllab_tab_states" in rv.json
|
||||
|
||||
Reference in New Issue
Block a user