You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Anaconda\lib\site-packages\_pytest\python.py:680: ValueError
During handling of the above exception, another exception occurred:
request = <FixtureRequest for <Function 'test_func_no_autouse[0-some0]'>>
def fill(request):
item = request._pyfuncitem
fixturenames = item.fixturenames
argnames = item._fixtureinfo.argnames
for fname in fixturenames:
if fname not in item.funcargs and fname not in argnames:
item.funcargs[fname] = request.getfixturevalue(fname)
if hasattr(item, 'callspec'):
for param, val in sorted_by_dependency(item.callspec.params, fixturenames):
if is_lazy_fixture(val):
> item.callspec.params[param] = request.getfixturevalue(val.name)
E Failed: The requested fixture has no parameter defined for the current test.
E
E Requested fixture 'zero_two' defined in:
E some_package\tests\test_example.py:47
E
E Requested here:
E C:\Anaconda\lib\site-packages\_pytest\fixtures.py:523
C:\Anaconda\lib\site-packages\pytest_lazyfixture.py:40: Failed
For some reason pytest_lazyfixture doesn't see fixtures that depend on other fixtures that pytest can see unless autouse=True in the lowest level fixture.
The text was updated successfully, but these errors were encountered:
Using modified example from the official Usage instructions:
The last test will fail unexpectedly with error:
For some reason
pytest_lazyfixture
doesn't see fixtures that depend on other fixtures thatpytest
can see unlessautouse=True
in the lowest level fixture.The text was updated successfully, but these errors were encountered: