Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
reverbc committed Apr 11, 2021
1 parent a48595c commit 5bde71e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def yield_fixture():
```

### W6402 `useless-pytest-mark-decorator`

Raise when using every `@pytest.mark.*` for the fixture ([ref](https://docs.pytest.org/en/stable/reference.html#marks))

```python
import pytest

Expand All @@ -109,17 +111,19 @@ def awesome_fixture():
...

@pytest.fixture
@pytest.mark.usefixtures("awesome_fixture")
@pytest.mark.usefixtures("awesome_fixture") # <- Using useless `@pytest.mark.*` decorator for fixtures
def another_awesome_fixture():
...
```

### W6403 `deprecated-positional-argument-for-pytest-fixture`
Raise when using deprecated positional arguments for fixture decorator

Raise when using deprecated positional arguments for fixture decorator ([ref](https://docs.pytest.org/en/stable/deprecations.html#pytest-fixture-arguments-are-keyword-only))

```python
import pytest

@pytest.fixture("module")
@pytest.fixture("module") # <- Using a deprecated positional arguments for fixture
def awesome_fixture():
...
```
Expand Down

0 comments on commit 5bde71e

Please sign in to comment.