gothinkster / flask-realworld-example-app

Exemplary real world JSON API built with Flask (Python)
https://realworld.io/
MIT License
902 stars 309 forks source link

Refactor deprecated yield_fixture decorator #37

Open ffe4 opened 4 years ago

ffe4 commented 4 years ago

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.