Unit Test and named urls

This commit is contained in:
Silvio Leite
2018-08-13 22:34:56 -03:00
parent 447bf17e63
commit 376f6e487a
7 changed files with 158 additions and 2 deletions

36
tests/settings.py Normal file
View File

@@ -0,0 +1,36 @@
SECRET_KEY = 'fake-key'
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
"pwa",
]
ROOT_URLCONF = 'pwa.urls'
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',
],
},
},
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mydatabase',
}
}