aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/auth')
-rw-r--r--tests/unit/auth/fixtures/oauth2_client_fixtures.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/auth/fixtures/oauth2_client_fixtures.py b/tests/unit/auth/fixtures/oauth2_client_fixtures.py
index 751eadd..03a53d7 100644
--- a/tests/unit/auth/fixtures/oauth2_client_fixtures.py
+++ b/tests/unit/auth/fixtures/oauth2_client_fixtures.py
@@ -8,6 +8,10 @@ import pytest
from gn3.auth import db
from gn3.auth.authentication.oauth2.models.oauth2client import OAuth2Client
+@pytest.fixture(autouse=True)
+def fixture_patch_envvars(monkeypatch):
+ monkeypatch.setenv("AUTHLIB_INSECURE_TRANSPORT", "true")
+
@pytest.fixture
def fixture_oauth2_clients(fixture_users_with_passwords):
"""Fixture: Create the OAuth2 clients for use with tests."""