Skip to content

Commit fae1418

Browse files
author
AlgorithmAlchemy
committed
test: add conftest.py fixture for pytest
1 parent ed635a3 commit fae1418

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# tests/conftest.py
2+
import pytest
3+
from flake8_no_english.checker import NonEnglishChecker
4+
5+
@pytest.fixture(autouse=True)
6+
def reset_flags():
7+
NonEnglishChecker.nle_comments = True
8+
NonEnglishChecker.nle_strings = False
9+
NonEnglishChecker.nle001_enabled = True
10+
NonEnglishChecker.nle002_enabled = True

0 commit comments

Comments
 (0)