AAfghahi commented on a change in pull request #14680:
URL: https://github.com/apache/superset/pull/14680#discussion_r635378162
##########
File path: tests/databases/api_tests.py
##########
@@ -1427,7 +1427,73 @@ def test_available(self, app,
get_available_engine_specs):
"preferred": True,
"sqlalchemy_uri_placeholder":
"postgresql+psycopg2://user:password@host:port/dbname[?key=value&key=value...]",
},
- {"engine": "mysql", "name": "MySQL", "preferred": False},
+ {"engine": "hana", "name": "SAP HANA", "preferred": False},
+ ]
+ }
+
+ @mock.patch("superset.databases.api.get_available_engine_specs")
+ @mock.patch("superset.databases.api.app")
+ def test_available_with_mysql(self, app, get_available_engine_specs):
Review comment:
yeah! Originally it was this, but I thought that as we add engines to
this list that this test might get unwieldy and huge so it might be better to
split up each engine spec.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]