You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/scripts/check_test_files.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,8 @@ function check_test_file_name() {
29
29
return 0
30
30
fi
31
31
done
32
-
if [[ $(basename "$filename")!=test_*&&$(basename "$filename")!=*_test.py ]];then
33
-
ERRORS+=("${RED}ERROR${RESET}: Test file '$filename' neither starts with 'test_' nor ends with '_test'. ${YELLOW}It has to follow the pytest naming convention.")
32
+
if [[ $(basename "$filename")!=*_test.py ]];then
33
+
ERRORS+=("${RED}ERROR${RESET}: Test file '$filename' doesn't end with '_test'. ${YELLOW}It has to follow the pytest naming convention.")
0 commit comments