---
source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs
---
PT004.py:51:5: PT004 Fixture `patch_something` does not return anything, add leading underscore
   |
50 | @pytest.fixture()
51 | def patch_something(mocker):  # Error simple
   |     ^^^^^^^^^^^^^^^ PT004
52 |     mocker.patch("some.thing")
   |

PT004.py:56:5: PT004 Fixture `activate_context` does not return anything, add leading underscore
   |
55 | @pytest.fixture()
56 | def activate_context():  # Error with yield
   |     ^^^^^^^^^^^^^^^^ PT004
57 |     with context:
58 |         yield
   |


