Test that applying @pytest.fixture twice generates an error (#2334).
(self)
| 3616 | ) |
| 3617 | |
| 3618 | def test_fixture_disallow_twice(self): |
| 3619 | """Test that applying @pytest.fixture twice generates an error (#2334).""" |
| 3620 | with pytest.raises(ValueError): |
| 3621 | |
| 3622 | @pytest.fixture |
| 3623 | @pytest.fixture |
| 3624 | def foo(): |
| 3625 | raise NotImplementedError() |
| 3626 | |
| 3627 | |
| 3628 | class TestContextManagerFixtureFuncs: |
nothing calls this directly
no outgoing calls
no test coverage detected