(self, pytester: Pytester)
| 1178 | |
| 1179 | class TestFixtureUsages: |
| 1180 | def test_noargfixturedec(self, pytester: Pytester) -> None: |
| 1181 | pytester.makepyfile( |
| 1182 | """ |
| 1183 | import pytest |
| 1184 | @pytest.fixture |
| 1185 | def arg1(): |
| 1186 | return 1 |
| 1187 | |
| 1188 | def test_func(arg1): |
| 1189 | assert arg1 == 1 |
| 1190 | """ |
| 1191 | ) |
| 1192 | reprec = pytester.inline_run() |
| 1193 | reprec.assertoutcome(passed=1) |
| 1194 | |
| 1195 | def test_receives_funcargs(self, pytester: Pytester) -> None: |
| 1196 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected