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

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


