Skip to content

Commit 777a2b2

Browse files
authored
fix: exclude page object files from test naming convention (#485)
Add exclude pattern for tests/**/pages/*.py to prevent page object files from being required to follow test_*.py naming convention. Signed-off-by: Manav Gupta <[email protected]>
1 parent c75cde8 commit 777a2b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ repos:
368368
description: Verifies test files in tests/ directories start with `test_`.
369369
language: python
370370
files: (^|/)tests/.+\.py$
371+
exclude: ^tests/.*/pages/.*\.py$ # Exclude page object files
371372
args: [--pytest-test-first] # `test_.*\.py`
372373

373374
# - repo: https://github.com/pycqa/flake8

0 commit comments

Comments
 (0)