♻️ Refactor code structure for tests (#674)
This commit is contained in:

committed by
GitHub

parent
20f6020c7c
commit
ed9958bc1e
@@ -10,7 +10,7 @@ from app.api.deps import CurrentUser, SessionDep, get_current_active_superuser
|
||||
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,
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
mypy app
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#! /usr/bin/env bash
|
||||
set -e
|
||||
set -x
|
||||
|
||||
python /app/app/tests_pre_start.py
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user