Refactoring tests.
This commit is contained in:
parent
3f7b184306
commit
051c29a262
6 changed files with 8 additions and 5 deletions
|
@ -76,3 +76,4 @@ LOGIN_REDIRECT_URL = '/'
|
|||
# OIDC Provider settings.
|
||||
|
||||
SITE_URL = 'http://localhost:8000'
|
||||
OIDC_RSA_KEY_FOLDER = BASE_DIR
|
||||
|
|
0
oidc_provider/tests/app/__init__.py
Normal file
0
oidc_provider/tests/app/__init__.py
Normal file
|
@ -1,6 +1,7 @@
|
|||
import os
|
||||
from datetime import timedelta
|
||||
|
||||
|
||||
DEBUG = False
|
||||
|
||||
DATABASES = {
|
||||
|
@ -45,9 +46,9 @@ INSTALLED_APPS = (
|
|||
'oidc_provider',
|
||||
)
|
||||
|
||||
SECRET_KEY = 'secret-for-test-secret-top-secret'
|
||||
SECRET_KEY = 'this-is-top-secret'
|
||||
|
||||
ROOT_URLCONF = 'oidc_provider.tests.test_urls'
|
||||
ROOT_URLCONF = 'oidc_provider.tests.app.urls'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
"oidc_provider/tests/templates",
|
||||
|
@ -56,3 +57,4 @@ TEMPLATE_DIRS = (
|
|||
# OIDC Provider settings.
|
||||
|
||||
SITE_URL = 'http://localhost:8000'
|
||||
OIDC_RSA_KEY_FOLDER = os.path.dirname(__file__)
|
|
@ -12,7 +12,7 @@ from django.test import TestCase
|
|||
|
||||
from oidc_provider import settings
|
||||
from oidc_provider.models import *
|
||||
from oidc_provider.tests.utils import *
|
||||
from oidc_provider.tests.app.utils import *
|
||||
from oidc_provider.views import *
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue