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:
Kasia Kucharczyk
2020-10-20 00:07:26 +02:00
committed by GitHub
parent 55c2892e9b
commit 0e97c4f66c
3 changed files with 69 additions and 35 deletions

View File

@@ -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):
"""