fixed api test

This commit is contained in:
Arash 2021-04-07 20:36:46 -04:00
parent 710608d9f3
commit aec0aabf1d
2 changed files with 4 additions and 1 deletions

View File

@ -144,5 +144,4 @@ class ImportModelsCommand(BaseCommand):
if exceptions:
exception = CommandInvalidError(f"Error importing {self.model_name}")
exception.add_list(exceptions)
print(exceptions)
raise exception

View File

@ -796,3 +796,7 @@ class TestSavedQueryApi(SupersetTestCase):
.one()
)
assert saved_query.database == database
db.session.delete(saved_query)
db.session.delete(database)
db.session.commit()