Skip to content

Commit

Permalink
updates conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Nov 29, 2024
1 parent e314d79 commit fbf36c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit fbf36c8

Please sign in to comment.