pytest-dev / pytest-dev/pytest

validate arguments of parametrize mark

Open
#3,645 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.