Skip to content

Commit ed9958b

Browse files
authored
♻️ Refactor code structure for tests (fastapi#674)
1 parent 20f6020 commit ed9958b

File tree

9 files changed

+5
-2
lines changed

9 files changed

+5
-2
lines changed

Diff for: backend/app/api/routes/login.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from app.core import security
1111
from app.core.config import settings
1212
from app.core.security import get_password_hash
13-
from app.models import Message, NewPassword, Token, User, UserOut
13+
from app.models import Message, NewPassword, Token, UserOut
1414
from app.utils import (
1515
generate_password_reset_token,
1616
generate_reset_password_email,
File renamed without changes.

Diff for: backend/scripts/lint.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

3+
set -e
34
set -x
45

56
mypy app

Diff for: backend/tests-start.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#! /usr/bin/env bash
22
set -e
3+
set -x
34

45
python /app/app/tests_pre_start.py
56

6-
bash ./scripts/lint.sh
7+
bash ./scripts/lint.sh
78
bash ./scripts/test.sh "$@"

Diff for: scripts/test.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Exit in case of error
44
set -e
5+
set -x
56

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

0 commit comments

Comments
 (0)