Files
full-stack-fastapi-postgresql/{{cookiecutter.project_slug}}/backend/app/app/tests/conftest.py
2020-01-19 13:25:17 +01:00

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)