pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
506 B
20 lines
506 B
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)
|
|
|