pytest-dev / pytest-dev/pytest
validate arguments of parametrize mark
Open
Nobody has claimed this yet.
topic: parametrize
type: enhancement
- Dominant language
- Python
- Stars
- 14.5k
- Forks
- 3.4k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 35
Description
followup to #3644
the error messages in minor mistakes are quite a pain and at a distance, we could do much better there by invoking a function that has the expected signature and/or checking the arguments against a signature
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the related issue #3644 and trace how pytest currently handles arguments for the parametrize mark. Clarify whether the goal is signature-based validation, invoking an expected-signature function, or both; done should mean minor argument mistakes produce clearer errors, with the exact behavior and tests agreed first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100