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 AAfghahi
parent aa11e5486b
commit d779789652
3 changed files with 209 additions and 9 deletions

View File

@@ -261,7 +261,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)