We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5256bd9 commit 82f7980Copy full SHA for 82f7980
.github/workflows/test_naming.yml
@@ -28,11 +28,14 @@ jobs:
28
- name: Validate test file naming convention
29
run: |
30
echo "Checking for test files that don't end with _test.py..."
31
- invalid_tests=$(
32
- find tests -type f -name "*.py" \
33
- ! -name "*_test.py" || true
34
- )
35
-
+ invalid_tests=$(find tests -type f -name "*.py" \
+ ! -name "*_test.py" \
+ ! -path "tests/integration/__init__.py" \
+ ! -path "tests/unit/conftest.py" \
+ ! -path "tests/unit/mock_server.py" \
36
+ ! -path "tests/unit/__init__.py" \
37
+ ! -path "tests/__init__.py" \
38
+ || true)
39
if [ -n "$invalid_tests" ]; then
40
echo "The following test files don't follow (*_test.py):"
41
echo "$invalid_tests"
0 commit comments