Skip to content

[MINOR][PYTHON][TESTS] Rename TVFParityTestsMixin to TVFParityTests#56037

Open
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:tvf-parity-rename
Open

[MINOR][PYTHON][TESTS] Rename TVFParityTestsMixin to TVFParityTests#56037
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:tvf-parity-rename

Conversation

@zhengruifeng
Copy link
Copy Markdown
Contributor

@zhengruifeng zhengruifeng commented May 21, 2026

What changes were proposed in this pull request?

Rename the class in python/pyspark/sql/tests/connect/test_parity_tvf.py from TVFParityTestsMixin to TVFParityTests.

Why are the changes needed?

TVFParityTestsMixin is actually the concrete Connect parity test case for the file — it inherits from ReusedConnectTestCase (a unittest.TestCase) and TVFTestsMixin, so the tests are picked up and run by the default unittest loader. The Mixin suffix is misleading and inconsistent with every other Connect parity file (TypesParityTests, ConfParityTests, etc.), all of which use a plain *ParityTests name. This is a naming-convention fix; no test behavior changes.

I scanned all 780 registered test modules in dev/sparktestsupport/modules.py for the same pattern (file where every top-level class is suffixed Mixin). test_parity_tvf.py is the only occurrence.

Does this PR introduce any user-facing change?

No. Test-only change.

How was this patch tested?

Existing tests. The class and its inherited test cases were already being collected by unittest; only the class name changes.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code claude-opus-4-7

@zhengruifeng zhengruifeng requested a review from HyukjinKwon May 21, 2026 12:30
@zhengruifeng zhengruifeng marked this pull request as ready for review May 21, 2026 12:30
The class in `test_parity_tvf.py` is named `TVFParityTestsMixin` even
though it is the concrete test case for the file (inheriting from
`ReusedConnectTestCase` and `TVFTestsMixin`). The tests are picked up by
`unittest` via the inherited `TestCase`, so this is purely a naming
issue, but the misleading suffix is inconsistent with every other
Connect parity file (`TypesParityTests`, `ConfParityTests`, etc.).
Rename it to `TVFParityTests` to match the convention.

Generated-by: Claude Code claude-opus-4-7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants