Skip to content

Commit fa1cd6b

Browse files
committed
Use fixture instead of yield_fixture
The old @pytest.yield_fixture causes a deprecation warning: Use @pytest.fixture instead; they are the same. def records():
1 parent 01e717b commit fa1cd6b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

23-dyn-attr-prop/oscon/test_schedule_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import schedule_v1 as schedule
44

55

6-
@pytest.yield_fixture
6+
@pytest.fixture
77
def records():
88
yield schedule.load(schedule.JSON_PATH)
99

23-dyn-attr-prop/oscon/test_schedule_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import schedule_v2 as schedule
44

5-
@pytest.yield_fixture
5+
@pytest.fixture
66
def records():
77
yield schedule.load(schedule.JSON_PATH)
88

23-dyn-attr-prop/oscon/test_schedule_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import schedule_v3 as schedule
44

5-
@pytest.yield_fixture
5+
@pytest.fixture
66
def records():
77
yield schedule.load(schedule.JSON_PATH)
88

23-dyn-attr-prop/oscon/test_schedule_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import schedule_v4 as schedule
44

5-
@pytest.yield_fixture
5+
@pytest.fixture
66
def records():
77
yield schedule.load(schedule.JSON_PATH)
88

23-dyn-attr-prop/oscon/test_schedule_v5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import schedule_v5 as schedule
44

5-
@pytest.yield_fixture
5+
@pytest.fixture
66
def records():
77
yield schedule.load(schedule.JSON_PATH)
88

0 commit comments

Comments
 (0)