From 5bde71e459d071b665b0e4e2e450bd09aaa9c841 Mon Sep 17 00:00:00 2001 From: Reverb Chu Date: Sun, 11 Apr 2021 11:15:02 -0700 Subject: [PATCH] update README --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8631353..638b53e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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(): ... ```