Skip to content

Commit b429f21

Browse files
authored
Merge pull request fluentpython#17 from kbaikov/master
Use fixture instead of yield_fixture
2 parents 01e717b + fa1cd6b commit b429f21

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: 23-dyn-attr-prop/oscon/test_schedule_v1.py

+1-1
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

Diff for: 23-dyn-attr-prop/oscon/test_schedule_v2.py

+1-1
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

Diff for: 23-dyn-attr-prop/oscon/test_schedule_v3.py

+1-1
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

Diff for: 23-dyn-attr-prop/oscon/test_schedule_v4.py

+1-1
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

Diff for: 23-dyn-attr-prop/oscon/test_schedule_v5.py

+1-1
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)