(self, pytester: Pytester)
| 4644 | result.assert_outcomes(passed=1) |
| 4645 | |
| 4646 | def test_func_closure_module(self, pytester: Pytester) -> None: |
| 4647 | pytester.makepyfile( |
| 4648 | """ |
| 4649 | import pytest |
| 4650 | |
| 4651 | @pytest.fixture(scope='module') |
| 4652 | def m1(): pass |
| 4653 | |
| 4654 | @pytest.fixture(scope='function') |
| 4655 | def f1(): pass |
| 4656 | |
| 4657 | def test_func(f1, m1): |
| 4658 | pass |
| 4659 | """ |
| 4660 | ) |
| 4661 | items, _ = pytester.inline_genitems() |
| 4662 | assert isinstance(items[0], Function) |
| 4663 | request = TopRequest(items[0], _ispytest=True) |
| 4664 | assert request.fixturenames == "m1 f1".split() |
| 4665 | |
| 4666 | def test_func_closure_scopes_reordered(self, pytester: Pytester) -> None: |
| 4667 | """Test ensures that fixtures are ordered by scope regardless of the order of the parameters, although |
nothing calls this directly
no test coverage detected