betodealmeida commented on code in PR #33560:
URL: https://github.com/apache/superset/pull/33560#discussion_r2112730828
##########
tests/integration_tests/datasource_tests.py:
##########
@@ -580,7 +580,7 @@ def test_get_samples_with_incorrect_cc(test_client,
login_as_admin, virtual_data
)
rv = test_client.post(uri, json={})
assert rv.status_code == 422
- assert rv.json["errors"][0]["error_type"] == "INVALID_SQL_ERROR"
+ assert "error" in rv.json
Review Comment:
Error payload is DB-dependent — different for MySQL, Postgres, SQLite, etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]