Browse Source

Updated test_backend.sh
- Skip FTP tests by default
- Added option --full to include FTP tests

maziggy 7 tháng trước cách đây
mục cha
commit
d02a9d8e36
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      test_backend.sh

+ 6 - 1
test_backend.sh

@@ -2,5 +2,10 @@
 
 cd backend
 ruff check && ruff format --check
-../venv/bin/python3 -m pytest tests/ -v -n 14
+
+if [ "$1" = "--full" ]; then
+  ../venv/bin/python3 -m pytest tests/ -v -n 14
+else
+  ../venv/bin/python3 -m pytest tests/ -v -n 14 --ignore=tests/unit/services/test_bambu_ftp.py
+fi
 cd ..