test(api): conftest at top level for global fixture access (#2038)
This commit is contained in:
parent
4019367abc
commit
7082c9693d
1 changed files with 0 additions and 0 deletions
|
@ -1,12 +0,0 @@
|
|||
import pytest
|
||||
from django.conf import settings
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def api_client():
|
||||
obj = APIClient()
|
||||
obj.credentials(
|
||||
HTTP_AUTHORIZATION=f"Api-Key {settings.CONFIG.general.api_key}",
|
||||
)
|
||||
return obj
|
Loading…
Add table
Add a link
Reference in a new issue