Fixture Autouse



examples/fixture_autouse/conftest.py
import pytest

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

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

$ pytest -sq
Before
In test
.

1 passed in 0.02 seconds