Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the current_cases fixture: add the full case id #217

Open
smarie opened this issue Jun 5, 2021 · 0 comments
Open

Improve the current_cases fixture: add the full case id #217

smarie opened this issue Jun 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@smarie
Copy link
Owner

smarie commented Jun 5, 2021

With the current_cases fixture one can access all information about the case currently being used for a given parameter.

However if the case is itself parametrized, the id available in current_cases[argname].id only corresponds to the "base" of the case, and is therefore not unique. This is a problem if we wish to use this id to fill a results table in a benchmark for example.

Proposal: add a .full_id argument that should return the part of the pytest id that corresponds to this case, therefore including the parameters and also the required fixture parameters (see #216).

Basically an id representing the current callspec of the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant