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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
