Refactoring tests.

This commit is contained in:
juanifioren 2015-07-14 13:27:46 -03:00
parent 3f7b184306
commit 051c29a262
6 changed files with 8 additions and 5 deletions

View file

@ -75,4 +75,5 @@ LOGIN_REDIRECT_URL = '/'
# OIDC Provider settings. # OIDC Provider settings.
SITE_URL = 'http://localhost:8000' SITE_URL = 'http://localhost:8000'
OIDC_RSA_KEY_FOLDER = BASE_DIR

View file

View file

@ -1,6 +1,7 @@
import os import os
from datetime import timedelta from datetime import timedelta
DEBUG = False DEBUG = False
DATABASES = { DATABASES = {
@ -45,9 +46,9 @@ INSTALLED_APPS = (
'oidc_provider', '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 = ( TEMPLATE_DIRS = (
"oidc_provider/tests/templates", "oidc_provider/tests/templates",
@ -55,4 +56,5 @@ TEMPLATE_DIRS = (
# OIDC Provider settings. # OIDC Provider settings.
SITE_URL = 'http://localhost:8000' SITE_URL = 'http://localhost:8000'
OIDC_RSA_KEY_FOLDER = os.path.dirname(__file__)

View file

@ -12,7 +12,7 @@ from django.test import TestCase
from oidc_provider import settings from oidc_provider import settings
from oidc_provider.models import * from oidc_provider.models import *
from oidc_provider.tests.utils import * from oidc_provider.tests.app.utils import *
from oidc_provider.views import * from oidc_provider.views import *