chore(sqla): refactor query utils (#21811)

Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
Ville Brofeldt
2022-10-17 10:40:42 +01:00
committed by GitHub
parent 7a7181a244
commit 52d33b05fd
3 changed files with 70 additions and 8 deletions

View File

@@ -262,7 +262,7 @@ class TestDatabaseModel(SupersetTestCase):
)
db.session.commit()
with pytest.raises(SupersetSecurityException):
with pytest.raises(QueryObjectValidationError):
table.get_sqla_query(**base_query_obj)
# Cleanup
db.session.delete(table)