diff --git a/gracedb/api/tests/utils.py b/gracedb/api/tests/utils.py index 231aa4d9e4482d6179805340c62cddebb8f5cb3c..f5bc297e31c02e360a0a3d9cb99d84e8bf4b4365 100644 --- a/gracedb/api/tests/utils.py +++ b/gracedb/api/tests/utils.py @@ -1,7 +1,14 @@ +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