pytest-incorrect-pytest-import (PT013)
Added in v0.0.208 · Related issues · View source
Derived from the flake8-pytest-style linter.
What it does
Checks for incorrect import of pytest.
Why is this bad?
For consistency, pytest should be imported as import pytest and its members should be
accessed in the form of pytest.xxx.yyy for consistency
Example
Use instead: