Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Refactor deprecated yield_fixture decorator #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ffe4
Copy link

@ffe4 ffe4 commented Aug 26, 2020

From the pytest docs:

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.

As this repository is being used as a learning resource, it would be nice if we could remove these.

Since pytest-3.0, normal fixtures can use a yield statement.

See: https://docs.pytest.org/en/stable/yieldfixture.html
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant