♻️ 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 import security
|
||||||
from app.core.config import settings
|
from app.core.config import settings
|
||||||
from app.core.security import get_password_hash
|
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 (
|
from app.utils import (
|
||||||
generate_password_reset_token,
|
generate_password_reset_token,
|
||||||
generate_reset_password_email,
|
generate_reset_password_email,
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
mypy app
|
mypy app
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
python /app/app/tests_pre_start.py
|
python /app/app/tests_pre_start.py
|
||||||
|
|
||||||
bash ./scripts/lint.sh
|
bash ./scripts/lint.sh
|
||||||
bash ./scripts/test.sh "$@"
|
bash ./scripts/test.sh "$@"
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Exit in case of error
|
# Exit in case of error
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
docker compose build
|
docker compose build
|
||||||
docker compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
|
docker compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
|
||||||
|
Reference in New Issue
Block a user