You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/04 19:12:47 UTC

[GitHub] [incubator-superset] villebro commented on a change in pull request #12253: test: fix flaky tests

villebro commented on a change in pull request #12253:
URL: https://github.com/apache/incubator-superset/pull/12253#discussion_r551508730



##########
File path: tests/databases/api_tests.py
##########
@@ -347,6 +347,7 @@ def test_create_database_fail_sqllite(self):
         """
         Database API: Test create fail with sqllite
         """
+        app.config["PREVENT_UNSAFE_DB_CONNECTIONS"] = True

Review comment:
       To make these even more resilient to flakery, I believe patching the dict would be the best option here, like here:
   https://github.com/apache/incubator-superset/blob/164db3e5a13c21137afb56a3044ef3f1aaf89e11/tests/charts/api_tests.py#L1108-L1110




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org