---
source: crates/ruff_linter/src/rules/flake8_pytest_style/mod.rs
---
PT001 [*] Use `@pytest.fixture()` over `@pytest.fixture`
  --> PT001.py:9:1
   |
 9 | @pytest.fixture
   | ^^^^^^^^^^^^^^^
10 | def no_parentheses():
11 |     return 42
   |
help: Add parentheses
   |
8  |
   - @pytest.fixture
9  + @pytest.fixture()
10 | def no_parentheses():
   |

PT001 [*] Use `@pytest.fixture()` over `@pytest.fixture`
  --> PT001.py:34:1
   |
34 | @fixture
   | ^^^^^^^^
35 | def imported_from_no_parentheses():
36 |     return 42
   |
help: Add parentheses
   |
33 |
   - @fixture
34 + @fixture()
35 | def imported_from_no_parentheses():
   |

PT001 [*] Use `@pytest.fixture()` over `@pytest.fixture`
  --> PT001.py:59:1
   |
59 | @aliased
   | ^^^^^^^^
60 | def aliased_no_parentheses():
61 |     return 42
   |
help: Add parentheses
   |
58 |
   - @aliased
59 + @aliased()
60 | def aliased_no_parentheses():
   |
