mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
tests: added fixtures to created dashboards and updated test with proper value (#11290)
* Added fixtures for hidden and published dashboards. Added fixture to restore copied dashboard in dashboard tests. Changed number of dashboards in datasets/api_tests.py because copied dashboard is removed. * Changed number of dashboards in database api tests after cleanup of dashboards in dashboards_tests
This commit is contained in:
@@ -784,7 +784,7 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
self.assertEqual(rv.status_code, 200)
|
||||
response = json.loads(rv.data.decode("utf-8"))
|
||||
self.assertEqual(response["charts"]["count"], 33)
|
||||
self.assertEqual(response["dashboards"]["count"], 6)
|
||||
self.assertEqual(response["dashboards"]["count"], 3)
|
||||
|
||||
def test_get_database_related_objects_not_found(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user