Browse Source

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

maziggy 3 months ago
parent
commit
d02a9d8e36
1 changed files with 6 additions and 1 deletions
  1. 6 1
      test_backend.sh

+ 6 - 1
test_backend.sh

@@ -2,5 +2,10 @@
 
 
 cd backend
 cd backend
 ruff check && ruff format --check
 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 ..
 cd ..