Skip to content

Commit

Permalink
Add in test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Feb 17, 2013
1 parent 918e772 commit 302fdff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions project_name/project_name/settings/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from base import *

########## TEST SETTINGS
TEST_RUNNER = 'discover_runner.DiscoverRunner'
TEST_DISCOVER_TOP_LEVEL = SITE_ROOT
TEST_DISCOVER_ROOT = SITE_ROOT
TEST_DISCOVER_PATTERN = "*_tests.py"
########## IN-MEMORY TEST DATABASE
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
"USER": "",
"PASSWORD": "",
"HOST": "",
"PORT": "",
},
}

0 comments on commit 302fdff

Please sign in to comment.