瀏覽代碼

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

maziggy 7 月之前
父節點
當前提交
d02a9d8e36
共有 1 個文件被更改,包括 6 次插入1 次删除
  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 ..