Skip to content
Snippets Groups Projects
Commit 909c3dfb authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Allow blank client version header for unit tests

parent 789991f8
No related branches found
No related tags found
1 merge request!8Superevents
from django.test import override_settings
from rest_framework.test import APIClient
from core.tests.utils import GraceDbTestBase
# Need to allow requests without a client version header
# to access the API for tests, unless we want to set and
# update that header ourselves...
@override_settings(
ALLOW_BLANK_USER_AGENT_TO_API=True,
)
class GraceDbApiTestBase(GraceDbTestBase):
client_class = APIClient
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment