[Task]: Cleanup Python tests in pipeline options module #28024
Labels
done & done
Issue has been reviewed after it was closed for verification, followups, etc.
good first issue
P3
python
task
Milestone
What needs to happen?
Current Python tests in options/pipeline_options_test.py and options/pipline_options_validator_test.py use an antipattern of for loops to approximate parameterized testing. This has the side effect of failing on the first test case that fails in the loop, masking further errors. In addition, the asserts do not contain the case the triggered the failure, making it hard to see which case failed.
Rewrite these tests to use https://pypi.org/project/parameterized/. Ensure that the test failures give clear error messages, and also ensure that the tests cases are all executed even when the first one fails.
Issue Priority
Priority: 3 (nice-to-have improvement)
Issue Components
The text was updated successfully, but these errors were encountered: