From fbf36c8620c9b8777db49cca1a23b1175cfda316 Mon Sep 17 00:00:00 2001 From: Stefano Apostolico Date: Fri, 29 Nov 2024 20:42:33 +0100 Subject: [PATCH] updates conftest --- tests/conftest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index d02e63a..1f07ca4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -51,20 +51,21 @@ def pytest_configure(config): os.environ["CELERY_TASK_STORE_EAGER_RESULT"] = "1" os.environ["SECURE_HSTS_PRELOAD"] = "0" os.environ["EXTRA_APPS"] = "country_workspace.contrib.hope" - os.environ["HOPE_API_TOKEN"] = "kugiugiuygiuygiuygiuhgiuhgiuhgiugiu" + os.environ["SECRET_KEY"] = "kugiugiuygiuygiuygiuhgiuhgiuhgiugiu" os.environ["FILE_STORAGE_DEFAULT"] = "django.core.files.storage.FileSystemStorage?location=./~tests/storage/" os.environ["FILE_STORAGE_MEDIA"] = "django.core.files.storage.FileSystemStorage?location=./~tests/storage/" - os.environ["HOPE_API_URL"] = "https://dev-hope.unitst.org/api/rest/" os.environ["LOGGING_LEVEL"] = "CRITICAL" import django from django.conf import settings + settings.AURORA_API_URL = "https://aurora.io/api/" settings.AURORA_API_TOKEN = "aurora_token" + settings.HOPE_API_URL = "https://dev-hope.unitst.org/api/rest/" + settings.HOPE_API_TOKEN = "kugiugiuygiuygiuygiuhgiuhgiuhgiugiu" settings.ALLOWED_HOSTS = ["127.0.0.1", "localhost"] - settings.AURORA_API_URL = "https://uni-hope-ukr-sr-dev.unitst.org/api/" settings.SIGNING_BACKEND = "testutils.signers.PlainSigner" settings.SECRET_KEY = "kugiugiuygiuygiuygiuhgiuhgiuhgiugiu" settings.CSRF_TRUSTED_ORIGINS = ["http://testserver"]