Skip to content

Split up tests/db_engine_test.py - #8449

Merged
mistercrunch merged 3 commits into
apache:masterfrom
preset-io:wbarrett/split-up-db-engine-test-file
Oct 25, 2019
Merged

mistercrunch merged 3 commits into
apache:masterfrom
preset-io:wbarrett/split-up-db-engine-test-file

Conversation

@willbarrett

Copy link
Copy Markdown
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

The db_engine_spec_test.py file was over 800 lines and targeted a number of different databases. It was difficult to find what was targeting which bit of implementation. This PR breaks up that test file into one test file per platform, as well as a base test module to inherit from for shared functionality. This should make it easier to increase test coverage of db_engine_specs going forward.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

Run tests. Test files were refactored.

ADDITIONAL INFORMATION

  • 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

REVIEWERS

@betodealmeida @mistercrunch @dpgaspar

@willbarrett willbarrett changed the title Wbarrett/split up db engine test file Split up tests/db_engine_test.py Oct 24, 2019
@mistercrunch
mistercrunch merged commit 82b1747 into apache:master Oct 25, 2019
@mistercrunch
mistercrunch deleted the wbarrett/split-up-db-engine-test-file branch October 25, 2019 03:46
graceguo-supercat pushed a commit that referenced this pull request Nov 13, 2019
* Split up db_engine_specs_test.py into a number of targeted files

* Remove db_engine_specs_test.py

* isort
@dpgaspar dpgaspar added the v0.35 label Dec 20, 2019
villebro pushed a commit that referenced this pull request Jan 4, 2020
* Split up db_engine_specs_test.py into a number of targeted files

* Remove db_engine_specs_test.py

* isort
@mistercrunch mistercrunch added 🍒 0.35.2 Cherry-picked to 0.35.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 First shipped in 0.36.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* Split up db_engine_specs_test.py into a number of targeted files

* Remove db_engine_specs_test.py

* isort
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* Split up db_engine_specs_test.py into a number of targeted files

* Remove db_engine_specs_test.py

* isort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XXL v0.35 🍒 0.35.2 Cherry-picked to 0.35.2 🚢 0.36.0 First shipped in 0.36.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants