| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Pytest allows to redefine fixture using results of execution of original fixture (see https://docs.pytest.org/en/stable/fixture.html#overriding-fixtures-on-various-levels for details) The previous implementation of fixture handling relied on str(fixturedef) which can be identical for both original and redefined fixtures. `fixturemanager.getfixturedefs(name, item.nodeid)` returns fixturedefs for both original and redefined fixture so we need to use all results of `fixturemanager.getfixturedefs` and not just the last element.
| Back | FazBrowse Home | New Git URL |
Pytest allows to redefine fixture using results of execution of original fixture (see https://docs.pytest.org/en/stable/fixture.html#overriding-fixtures-on-various-levels for details)
The previous implementation of fixture handling relied on str(fixturedef) which can be identical for both original and redefined fixtures so we use python built-in id()
fixturemanager.getfixturedefs(name, item.nodeid) returns fixturedefs for both original and redefined fixture so we need to use all results of fixturemanager.getfixturedefs and not just the last element.
Checklist