mirror of
https://github.com/kevin-DL/full-stack-fastapi-postgresql.git
synced 2026-01-12 02:05:14 +00:00
21 lines
506 B
Python
21 lines
506 B
Python
import pytest
|
|
|
|
from app.core import config
|
|
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(config.EMAIL_TEST_USER)
|