Skip to content

Commit

Permalink
fixed api test
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Apr 8, 2021
1 parent 710608d commit aec0aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion superset/commands/importers/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,4 @@ def validate(self) -> None:
if exceptions:
exception = CommandInvalidError(f"Error importing {self.model_name}")
exception.add_list(exceptions)
print(exceptions)
raise exception
4 changes: 4 additions & 0 deletions tests/queries/saved_queries/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,3 +796,7 @@ def test_import_saved_queries(self):
.one()
)
assert saved_query.database == database

db.session.delete(saved_query)
db.session.delete(database)
db.session.commit()

0 comments on commit aec0aab

Please sign in to comment.