Merge pull request #17 from kbaikov/master

Use fixture instead of yield_fixture
This commit is contained in:
Luciano Ramalho 2021-08-23 16:15:02 -03:00 committed by GitHub
commit b429f217d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import pytest
import schedule_v1 as schedule
@pytest.yield_fixture
@pytest.fixture
def records():
yield schedule.load(schedule.JSON_PATH)

View File

@ -2,7 +2,7 @@ import pytest
import schedule_v2 as schedule
@pytest.yield_fixture
@pytest.fixture
def records():
yield schedule.load(schedule.JSON_PATH)

View File

@ -2,7 +2,7 @@ import pytest
import schedule_v3 as schedule
@pytest.yield_fixture
@pytest.fixture
def records():
yield schedule.load(schedule.JSON_PATH)

View File

@ -2,7 +2,7 @@ import pytest
import schedule_v4 as schedule
@pytest.yield_fixture
@pytest.fixture
def records():
yield schedule.load(schedule.JSON_PATH)

View File

@ -2,7 +2,7 @@ import pytest
import schedule_v5 as schedule
@pytest.yield_fixture
@pytest.fixture
def records():
yield schedule.load(schedule.JSON_PATH)