Fixture Autouse with yield



examples/fixture_autouse_around/conftest.py
import pytest

@pytest.fixture(autouse = True)
def configuration():
    print("Before")

    yield

    print("After")

examples/fixture_autouse_around/test_app.py
def test_app():
    print("In test")
    assert True

$ pytest -sq
Before
In test
.After

1 passed in 0.02 seconds