Skip to content

[MINOR][PYTHON][TESTS] Rename test_utils to test_parity_utils for Connect parity convention#55695

Closed
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:rename-test-parity-utils
Closed

[MINOR][PYTHON][TESTS] Rename test_utils to test_parity_utils for Connect parity convention#55695
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:rename-test-parity-utils

Conversation

@zhengruifeng
Copy link
Copy Markdown
Contributor

@zhengruifeng zhengruifeng commented May 6, 2026

What changes were proposed in this pull request?

The Connect parity test file python/pyspark/sql/tests/connect/test_utils.py and its class ConnectUtilsTests don't follow the naming convention used by 200+ other parity tests in python/pyspark/sql/tests/connect/:

  • Filename should be test_parity_<name>.py.
  • Class name should be <Name>ParityTests.

This PR renames:

  • python/pyspark/sql/tests/connect/test_utils.py -> python/pyspark/sql/tests/connect/test_parity_utils.py
  • ConnectUtilsTests -> UtilsParityTests

The reference to the old module path is updated in dev/sparktestsupport/modules.py.

Why are the changes needed?

Consistency. The test_parity_* filename and *ParityTests class name are the established convention across the Connect parity test suite; this rename brings the utils parity test in line and makes it easier to locate and identify parity tests at a glance.

Does this PR introduce any user-facing change?

No. Test-only change with no behavioral impact.

How was this patch tested?

Existing tests; only filename and class name changed. The test module is still discovered through dev/sparktestsupport/modules.py.

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

Generated-by: Claude Code (Opus 4.7)

… Connect parity convention

Following up on the `test_resources` -> `test_parity_resources` rename,
the Connect parity test file `python/pyspark/sql/tests/connect/test_utils.py`
and its class `ConnectUtilsTests` are the only remaining ones in
`python/pyspark/sql/tests/connect/` that don't follow the established
naming convention used by 200+ other parity tests:

- Filename should be `test_parity_<name>.py`.
- Class name should be `<Name>ParityTests`.

This PR renames:
- `python/pyspark/sql/tests/connect/test_utils.py` ->
  `python/pyspark/sql/tests/connect/test_parity_utils.py`
- `ConnectUtilsTests` -> `UtilsParityTests`

The reference to the module path is updated in `dev/sparktestsupport/modules.py`.

Generated-by: Claude Code (Opus 4.7)
@zhengruifeng zhengruifeng marked this pull request as ready for review May 6, 2026 06:21
zhengruifeng added a commit that referenced this pull request May 6, 2026
… Connect parity convention

### What changes were proposed in this pull request?

The Connect parity test file `python/pyspark/sql/tests/connect/test_utils.py` and its class `ConnectUtilsTests` don't follow the naming convention used by 200+ other parity tests in `python/pyspark/sql/tests/connect/`:

- Filename should be `test_parity_<name>.py`.
- Class name should be `<Name>ParityTests`.

This PR renames:
- `python/pyspark/sql/tests/connect/test_utils.py` -> `python/pyspark/sql/tests/connect/test_parity_utils.py`
- `ConnectUtilsTests` -> `UtilsParityTests`

The reference to the old module path is updated in `dev/sparktestsupport/modules.py`.

### Why are the changes needed?

Consistency. The `test_parity_*` filename and `*ParityTests` class name are the established convention across the Connect parity test suite; this rename brings the utils parity test in line and makes it easier to locate and identify parity tests at a glance.

### Does this PR introduce _any_ user-facing change?

No. Test-only change with no behavioral impact.

### How was this patch tested?

Existing tests; only filename and class name changed. The test module is still discovered through `dev/sparktestsupport/modules.py`.

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

Generated-by: Claude Code (Opus 4.7)

Closes #55695 from zhengruifeng/rename-test-parity-utils.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>
(cherry picked from commit d23148e)
Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>
@zhengruifeng
Copy link
Copy Markdown
Contributor Author

merged to master and 4.x

@zhengruifeng zhengruifeng deleted the rename-test-parity-utils branch May 6, 2026 10:05
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.

2 participants