-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Better message in case of not using parametrized variable #1539
Comments
It is a fixture from pytest's point of view - but I'd also be okay with the error saying "argument" instead of "fixture". "variable" is even more confusing, IMHO. |
for parametrize, in case of direct "arguments" we should use names that make the most sense for a good error we should take a look if there is a indirect fixture that takes parameters (needs indirect=True) or if the parameter is just missing (maybe typo detection) |
I'd say we change the
|
Please review #1757 |
Fixed in #1757 |
py.test 2.9.1
In case of not using one of parametrized variables the following message is displayed:
where
suffix
isn't a fixture but missed variable frompytest.mark.parametrize
.Suggested enhancement: Raise Exception with a message suggesting using the
suffix
variable and not confuse developers aboutsuffix
fixture.The text was updated successfully, but these errors were encountered: