Skip to content

Commit

Permalink
- fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Jan 19, 2015
1 parent b583473 commit c65b2ec
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
61 changes: 61 additions & 0 deletions formaldehyde/tests/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Django settings for testproject project.

import os
DIRNAME = os.path.dirname(__file__)

DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEBUG_PROPAGATE_EXCEPTIONS = True

ADMINS = ()
MANAGERS = ADMINS

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(DIRNAME, 'db.sqlite3'),
'TEST_NAME': os.path.join(DIRNAME, 'test_db.sqlite3'),
}
}

TIME_ZONE = 'Europe/Rome'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
MEDIA_ROOT = ''
MEDIA_URL = ''
SECRET_KEY = 'fdO5Y<g#YRWG8;My1nrkLp>.w(w~q_b=|2`?3<x>0KxA%UB!77'

TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)

ROOT_URLCONF = 'formaldehyde.tests.urls'
TEMPLATE_DIRS = ()

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',

'formaldehyde',
'formaldehyde.tests',
)

TEST_RUNNER = 'django.test.runner.DiscoverRunner'

STATIC_URL = '/static/'

Empty file added formaldehyde/tests/test.py
Empty file.
9 changes: 9 additions & 0 deletions formaldehyde/tests/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.conf.urls import patterns, include, url
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
# Examples for custom menu
url(r'^admin/', include(admin.site.urls)),
)

0 comments on commit c65b2ec

Please sign in to comment.