-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictopic: parametrizerelated to @pytest.mark.parametrizerelated to @pytest.mark.parametrizetopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errors
Description
py.test 2.9.1
In case of not using one of parametrized variables the following message is displayed:
/python2.7/site-packages/_pytest/python.py:237: in pytest_generate_tests
metafunc.parametrize(*marker.args, **marker.kwargs)
/python2.7/site-packages/_pytest/python.py:1000: in parametrize
raise ValueError("%r uses no fixture %r" %(self.function, arg))
E ValueError: <function test_abc at 0x7f9bb394dde8> uses no fixture u'suffix'
where suffix
isn't a fixture but missed variable from pytest.mark.parametrize
.
Suggested enhancement: Raise Exception with a message suggesting using the suffix
variable and not confuse developers about suffix
fixture.
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributorstatus: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictopic: parametrizerelated to @pytest.mark.parametrizerelated to @pytest.mark.parametrizetopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errors