From fb8dfee25c93a926b025cacf79088c58dece4bf8 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Fri, 12 Mar 2021 15:04:57 +0100 Subject: [PATCH] Fix unit tests --- server/core/settings.py | 19 ------------------- .../registration/tests/test_registration.py | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/server/core/settings.py b/server/core/settings.py index f74aacd3..96f28268 100644 --- a/server/core/settings.py +++ b/server/core/settings.py @@ -353,25 +353,6 @@ if not DEBUG and os.environ.get('SENTRY_DSN'): send_default_pii=True ) - # LOGGING['handlers'] = { - # 'sentry': { - # 'level': 'ERROR', # ERROR, WARNING, INFO - # 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler', - # 'tags': {'custom-tag': 'x'}, - # }, - # 'console': { - # 'level': 'INFO', - # 'class': 'logging.StreamHandler', - # 'stream': sys.stdout, - # 'formatter': 'simple_format' - # } - # } - # - # for k, v in LOGGING['loggers'].items(): - # LOGGING['loggers'][k]['handlers'] = ['sentry', 'console'] -# else: -# RAVEN_CONFIG = {} - RAVEN_DSN_JS = os.environ.get('RAVEN_DSN_JS', '') GOOGLE_TAG_MANAGER_CONTAINER_ID = os.environ.get('GOOGLE_TAG_MANAGER_CONTAINER_ID') diff --git a/server/registration/tests/test_registration.py b/server/registration/tests/test_registration.py index 4baf4f2b..cab50142 100644 --- a/server/registration/tests/test_registration.py +++ b/server/registration/tests/test_registration.py @@ -13,7 +13,7 @@ from django.contrib.sessions.middleware import SessionMiddleware from django.test import TestCase, RequestFactory from graphene.test import Client -from api.schema import schema +from api.schema_public import schema from core.hep_client import HepClient from core.tests.mock_hep_data_factory import ME_DATA, VALID_TEACHERS_ORDERS from users.models import License