Repository navigation
chore(tests): move oceanbase peewee test under test/ and fix enum check - #12969
Merged
KevinHuSh merged 1 commit intoFeb 3, 2026
Merged
Conversation
KevinHuSh
marked this pull request as draft
February 3, 2026 08:46
KevinHuSh
marked this pull request as ready for review
February 3, 2026 08:46
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12969 +/- ##
===========================================
- Coverage 44.46% 0 -44.47%
===========================================
Files 43 0 -43
Lines 9266 0 -9266
Branches 107 0 -107
===========================================
- Hits 4120 0 -4120
+ Misses 5127 0 -5127
+ Partials 19 0 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
This mistake was made by PR #12926
This PR makes the OceanBase peewee unit test discoverable by the default unit test runner/CI (by moving it under test/), so it’s included in the unified unit test suite.
It also fixes
test_database_lock_enum_valuesto correctly handle Enum alias members (DatabaseLock uses the same value for MYSQL and OCEANBASE).Type of change
Screenshots
The original

test_oceanbase_peewee.pywas placed under tests/, which isn’t included in the default unit test runner’s testpaths, so it wasn’t picked up by the unit test suite. So we need to move it to correct path.When using old version in
test_oceanbase_peewee.py:The old check iterated Enum members, so alias values were skipped and only
MYSQL/POSTGRESwere seen, making OCEANBASE appear missing.and new version uses

DatabaseLock.__members__and passes: