Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 5bde71e

Browse files
committed
update README
1 parent a48595c commit 5bde71e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def yield_fixture():
100100
```
101101

102102
### W6402 `useless-pytest-mark-decorator`
103+
103104
Raise when using every `@pytest.mark.*` for the fixture ([ref](https://docs.pytest.org/en/stable/reference.html#marks))
105+
104106
```python
105107
import pytest
106108

@@ -109,17 +111,19 @@ def awesome_fixture():
109111
...
110112

111113
@pytest.fixture
112-
@pytest.mark.usefixtures("awesome_fixture")
114+
@pytest.mark.usefixtures("awesome_fixture") # <- Using useless `@pytest.mark.*` decorator for fixtures
113115
def another_awesome_fixture():
114116
...
115117
```
116118

117119
### W6403 `deprecated-positional-argument-for-pytest-fixture`
118-
Raise when using deprecated positional arguments for fixture decorator
120+
121+
Raise when using deprecated positional arguments for fixture decorator ([ref](https://docs.pytest.org/en/stable/deprecations.html#pytest-fixture-arguments-are-keyword-only))
122+
119123
```python
120124
import pytest
121125

122-
@pytest.fixture("module")
126+
@pytest.fixture("module") # <- Using a deprecated positional arguments for fixture
123127
def awesome_fixture():
124128
...
125129
```

0 commit comments

Comments
 (0)