Browse Source

♻️ Refactor code structure for tests (#674)

pull/13907/head
Sebastián Ramírez 1 year ago
committed by GitHub
parent
commit
ed9958bc1e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      backend/app/api/routes/login.py
  2. 0
      backend/app/tests/api/routes/__init__.py
  3. 0
      backend/app/tests/api/routes/test_celery.py
  4. 0
      backend/app/tests/api/routes/test_items.py
  5. 0
      backend/app/tests/api/routes/test_login.py
  6. 0
      backend/app/tests/api/routes/test_users.py
  7. 1
      backend/scripts/lint.sh
  8. 1
      backend/tests-start.sh
  9. 1
      scripts/test.sh

2
backend/app/api/routes/login.py

@ -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,

0
backend/app/tests/api/api_v1/__init__.py → backend/app/tests/api/routes/__init__.py

0
backend/app/tests/api/api_v1/test_celery.py → backend/app/tests/api/routes/test_celery.py

0
backend/app/tests/api/api_v1/test_items.py → backend/app/tests/api/routes/test_items.py

0
backend/app/tests/api/api_v1/test_login.py → backend/app/tests/api/routes/test_login.py

0
backend/app/tests/api/api_v1/test_users.py → backend/app/tests/api/routes/test_users.py

1
backend/scripts/lint.sh

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
set -x
mypy app

1
backend/tests-start.sh

@ -1,5 +1,6 @@
#! /usr/bin/env bash
set -e
set -x
python /app/app/tests_pre_start.py

1
scripts/test.sh

@ -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

Loading…
Cancel
Save