79631c7619
* Use Pydantic BaseSettings for config settings * Update fastapi dep to >=0.47.0 and email_validator to email-validator * Fix deprecation warning for Pydantic >=1.0 * Properly support old-format comma separated strings for BACKEND_CORS_ORIGINS Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
21 lines
517 B
Python
21 lines
517 B
Python
import pytest
|
|
|
|
from app.core.config import settings
|
|
from app.tests.utils.utils import get_server_api, get_superuser_token_headers
|
|
from app.tests.utils.user import authentication_token_from_email
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def server_api():
|
|
return get_server_api()
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def superuser_token_headers():
|
|
return get_superuser_token_headers()
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def normal_user_token_headers():
|
|
return authentication_token_from_email(settings.EMAIL_TEST_USER)
|