Replace yield_fixture -> fixture in internal code

`yield_fixture` is a deprecated alias to `fixture`.
This commit is contained in:
Ran Benita
2020-06-25 14:05:46 +03:00
parent d69e9e60d6
commit f00bec2a12
6 changed files with 9 additions and 12 deletions

View File

@@ -1315,7 +1315,7 @@ class TestFixtureUsages:
DB_INITIALIZED = None
@pytest.yield_fixture(scope="session", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def db():
global DB_INITIALIZED
DB_INITIALIZED = True
@@ -2960,8 +2960,7 @@ class TestFixtureMarker:
"""
import pytest
@pytest.yield_fixture(params=[object(), object()],
ids=['alpha', 'beta'])
@pytest.fixture(params=[object(), object()], ids=['alpha', 'beta'])
def fix(request):
yield request.param