Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 314 Bytes

PT013.md

File metadata and controls

23 lines (15 loc) · 314 Bytes

PT013

found incorrect import of pytest, use simple 'import pytest' instead

Examples

Bad code:

import pytest as pt
from pytest import fixture

Good code:

import pytest

Rationale

  • to enforce consistency
  • to help the linter check usage of members imported from pytest