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/03/10 20:02:19 UTC
[GitHub] [superset] ktmud opened a new pull request #13559: ci: run python tests in a separate database
ktmud opened a new pull request #13559:
URL: https://github.com/apache/superset/pull/13559
### SUMMARY
It's annoying sometimes when I run [a unit test using the `birth_names` fixture](https://github.com/apache/superset/blob/b9884fb55bdf40cc7f073d2b758f43a5b6265d6c/tests/query_context_tests.py#L320), it will drop the whole `birth_names` table in the example database once the test is finished. I can't remember how many times I had to run `superset load_examples` to add the data back.
This PR adds test database just for running testing and makes sure all applicable Python unit tests (those using ad-hoc fixtures instead of actual examples data) are run on the test database instead of examples.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
### TEST PLAN
No functional changes. CI should pass. Running a single unit test with `load_birth_names_dashboard_with_slices` fixture should not drop the `birth_names` table.
### ADDITIONAL INFORMATION
<!--- Check any relevant boxes with "x" -->
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
- [ ] Has associated issue:
- [ ] Changes UI
- [ ] Requires DB Migration.
- [ ] Confirm DB Migration upgrade and downgrade tested.
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
----------------------------------------------------------------
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
[GitHub] [superset] ktmud closed pull request #13559: refactor: run python tests in a separate database
Posted by GitBox <gi...@apache.org>.
ktmud closed pull request #13559:
URL: https://github.com/apache/superset/pull/13559
--
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: notifications-unsubscribe@superset.apache.org
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
[GitHub] [superset] stale[bot] commented on pull request #13559: refactor: run python tests in a separate database
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on pull request #13559:
URL: https://github.com/apache/superset/pull/13559#issuecomment-859200854
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
--
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