fixture argument params
is not working
#10180
Answered
by
RonnyPfannschmidt
devrimcavusoglu
asked this question in
Q&A
-
I intended to use the import pytest
valid_list = ["a", "b", "c", "d"]
@pytest.fixture(scope="module", params=[("a","b"), ("c", "d")])
def my_fixture(input_params):
x, y = input_params.param
assert x in valid_list and y in valid_list what I get is, E fixture 'input_params' not found
> available fixtures: ...
> use 'pytest --fixtures [testpath]' for help on them. The thing is indeed |
Beta Was this translation helpful? Give feedback.
Answered by
RonnyPfannschmidt
Aug 2, 2022
Replies: 1 comment
-
as per documentation, the argument name is request, and |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
devrimcavusoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as per documentation, the argument name is request, and
request.param
is where you find the data