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
Having a sub-fixture overwriting a higher-level fixture (with the same name) an argument setup as marker is lost for the higher-level fixture. This is tested with latest pytest 3.6.3.
I would expect that I can simply overwrite fixtures and markers are still available as arguments for fixtures.
The text was updated successfully, but these errors were encountered:
whimboo
changed the title
Missing marker in fixturenames for sub-fixture with same name
Missing marker in metafunc.fixturenames for sub-fixture with same name
Jul 25, 2018
GitMate.io thinks possibly related issues are #3655 (several names for fixture), #794 (fixture named "request" fails), #519 (fixture scope is ignored when using metafunc.parametrize()), #354 (tmpdir fixture: 'File name too long'), and #1368 (apply markers based on fixtures/dependent fixtures).
def test_spam(request, spam):
assert spam == 'hamspamhamspam'
> assert 'ham' in request.fixturenames
E AssertionError: assert 'ham' in ['request', 'spam']
E + where ['request', 'spam'] = <FixtureRequest for <Function 'test_spam'>>.fixturenames
RonnyPfannschmidt
changed the title
Missing marker in metafunc.fixturenames for sub-fixture with same name
Missing entry in metafunc.fixturenames for sub-fixture with same name
Dec 21, 2018
Having a sub-fixture overwriting a higher-level fixture (with the same name) an argument setup as marker is lost for the higher-level fixture. This is tested with latest pytest 3.6.3.
Here an example:
Workarounds for now are:
I would expect that I can simply overwrite fixtures and markers are still available as arguments for fixtures.
The text was updated successfully, but these errors were encountered: