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
@given("User does not have credit", target_fixture="fielding_page")
def no_money(context_logged_in, base_url):
return Fielding_Page(context_logged_in.new_page(), base_url)
Version: bdd-7.1.1
`
The text was updated successfully, but these errors were encountered:
mp2218
changed the title
Pytest 8.1.1 injection fixture compability
Pytest 8.1.1 fixture injection compability
Mar 11, 2024
but obviously it then breaks compatibility with previous versions of pytest. The compat.py file is already addressing what looks like a related compatibility issue, with two different functions depending on whether pytest is below or above 8.1, so creating a function there that instantiates FixtureDef differently based on the version worked for me locally.
It's not the nicest solution, but I'm happy to open a PR with these changes if it'll help.
Test which had fixture injection worked fine last week, but now with new pytest release breaks with following trace:
snippet of fixture injection:
@given("User does not have credit", target_fixture="fielding_page")
def no_money(context_logged_in, base_url):
return Fielding_Page(context_logged_in.new_page(), base_url)
Version: bdd-7.1.1
`
The text was updated successfully, but these errors were encountered: