Open MichaelClerx opened 2 years ago
https://docs.pytest.org/en/latest/yieldfixture.html
Since pytest-3.0, fixtures using the normal fixture decorator can use a yield statement to provide fixture values and execute teardown code, exactly like yield_fixture in previous versions.
Marking functions as yield_fixture is still supported, but deprecated and should not be used in new code.
We currently have pytest<7
in dev.in
(why? surely test software can't have version conflicts?), so would have to amend that to pytest>=3,<7
Seems like an rc for 7 is on pip as a pre-release. Strange that we've needed to exclude that then, wonder if there's a way to make it ignore that without hardcoding the version no
From the test (
build
) output: