Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Juan Ignacio Fiorentino
committed
Mar 22, 2018
1 parent
b32fa6c
commit d519e49
Showing
14 changed files
with
100 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ src/ | |
docs/_build/ | ||
.eggs/ | ||
.python-version | ||
.pytest_cache/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
DEBUG = False | ||
|
||
SECRET_KEY = 'this-should-be-top-secret' | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:', | ||
} | ||
} | ||
|
||
SITE_ID = 1 | ||
|
||
MIDDLEWARE_CLASSES = [ | ||
'django.middleware.common.CommonMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
] | ||
|
||
MIDDLEWARE = [ | ||
'django.middleware.common.CommonMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
] | ||
|
||
TEMPLATES = [ | ||
{ | ||
'BACKEND': 'django.template.backends.django.DjangoTemplates', | ||
'DIRS': [], | ||
'APP_DIRS': True, | ||
'OPTIONS': { | ||
'context_processors': [ | ||
'django.template.context_processors.debug', | ||
'django.template.context_processors.request', | ||
'django.contrib.auth.context_processors.auth', | ||
'django.contrib.messages.context_processors.messages', | ||
], | ||
}, | ||
}, | ||
] | ||
|
||
INSTALLED_APPS = [ | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
'django.contrib.sessions', | ||
'django.contrib.sites', | ||
'django.contrib.messages', | ||
'django.contrib.admin', | ||
'oidc_provider', | ||
] | ||
|
||
ROOT_URLCONF = 'oidc_provider.tests.app.urls' | ||
|
||
TEMPLATE_DIRS = [ | ||
'oidc_provider/tests/templates', | ||
] | ||
|
||
USE_TZ = True | ||
|
||
LOGGING = { | ||
'version': 1, | ||
'disable_existing_loggers': False, | ||
'handlers': { | ||
'console': { | ||
'class': 'logging.StreamHandler', | ||
}, | ||
}, | ||
'loggers': { | ||
'oidc_provider': { | ||
'handlers': ['console'], | ||
'level': 'DEBUG', | ||
}, | ||
}, | ||
} | ||
|
||
# OIDC Provider settings. | ||
|
||
SITE_URL = 'http://localhost:8000' | ||
OIDC_USERINFO = 'oidc_provider.tests.app.utils.userinfo' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
[tox] | ||
|
||
envlist= | ||
clean, | ||
py27-django{17,18,19,110,111}, | ||
py34-django{17,18,19,110,111,20}, | ||
py35-django{18,19,110,111,20}, | ||
py36-django{18,19,110,111,20}, | ||
|
||
[testenv] | ||
|
||
changedir= | ||
oidc_provider/tests/cases | ||
deps = | ||
mock | ||
psycopg2 | ||
pytest | ||
pytest-django | ||
pytest-flake8 | ||
pytest-cov | ||
django17: django>=1.7,<1.8 | ||
django18: django>=1.8,<1.9 | ||
django19: django>=1.9,<1.10 | ||
django110: django>=1.10,<1.11 | ||
django111: django>=1.11,<1.12 | ||
django20: django>=2.0,<2.1 | ||
coverage | ||
mock | ||
|
||
commands = | ||
coverage run setup.py test | ||
|
||
[testenv:clean] | ||
|
||
commands= | ||
coverage erase | ||
|
||
[testenv:stats] | ||
|
||
commands= | ||
coverage report -m | ||
pytest --flake8 --cov=oidc_provider {posargs} | ||
|
||
[pytest] | ||
DJANGO_SETTINGS_MODULE = oidc_provider.tests.settings | ||
python_files = test_*.py | ||
flake8-max-line-length = 99 | ||
flake8-ignore = | ||
.git ALL | ||
__pycache__ ALL | ||
.ropeproject ALL | ||
*/migrations ALL | ||
manage.py ALL |