From fd1dfe878d032c66d8e9484dfdcb9303554c9b40 Mon Sep 17 00:00:00 2001 From: Jordi Loyzaga Date: Sat, 27 Apr 2024 18:52:56 -0600 Subject: [PATCH] Fixed broken tests --- scripts/drone/lint.sh | 2 +- scripts/drone/setup.sh | 3 +++ scripts/drone/test.sh | 4 ---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/drone/lint.sh b/scripts/drone/lint.sh index 99e59f1..a43d300 100755 --- a/scripts/drone/lint.sh +++ b/scripts/drone/lint.sh @@ -5,4 +5,4 @@ printf "\n\n|| Starting ruff check ||\n\n" ruff check --config=./pyproject.toml printf "\n\n|| Starting bandit check ||\n\n" -bandit -r lockbox/ \ No newline at end of file +bandit -r lockbox/ -c ./pyproject.toml \ No newline at end of file diff --git a/scripts/drone/setup.sh b/scripts/drone/setup.sh index 68193d5..99707f9 100755 --- a/scripts/drone/setup.sh +++ b/scripts/drone/setup.sh @@ -1,3 +1,6 @@ +printf "\n\n|| Installing test requirements ||\n\n" +pip install -r requirements_test.txt + cd lockbox printf "\n\n|| Starting setup ||\n\n" python manage.py migrate \ No newline at end of file diff --git a/scripts/drone/test.sh b/scripts/drone/test.sh index 36e27ae..3321217 100755 --- a/scripts/drone/test.sh +++ b/scripts/drone/test.sh @@ -1,6 +1,2 @@ -printf "\n\n|| Installing test requirements ||\n\n" -pip install -r requirements_test.txt - -cd lockbox printf "\n\n|| Starting pytest run ||\n\n" pytest --cov=. --cov-report term-missing --reuse-db \ No newline at end of file