Skip to content

Commit

Permalink
♻️ Refactor code structure for tests (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Mar 11, 2024
1 parent 20f6020 commit ed9958b
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/api/routes/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from app.core import security
from app.core.config import settings
from app.core.security import get_password_hash
from app.models import Message, NewPassword, Token, User, UserOut
from app.models import Message, NewPassword, Token, UserOut
from app.utils import (
generate_password_reset_token,
generate_reset_password_email,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions backend/scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

set -e
set -x

mypy app
Expand Down
3 changes: 2 additions & 1 deletion backend/tests-start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#! /usr/bin/env bash
set -e
set -x

python /app/app/tests_pre_start.py

bash ./scripts/lint.sh
bash ./scripts/lint.sh
bash ./scripts/test.sh "$@"
1 change: 1 addition & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Exit in case of error
set -e
set -x

docker compose build
docker compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
Expand Down

0 comments on commit ed9958b

Please sign in to comment.