Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a new settings.test module.

This module will be used to run all tests locally using an in-memory sqlite3
database to prevent bootstrapping issues as much as possible.
  • Loading branch information...
commit 990c72ca8ef953ba4af0ffeb2ff3d3b729aea5ff 1 parent d59fd77
Randall Degges authored
Showing with 41 additions and 0 deletions.
  1. +41 −0 settings/test.py
View
41 settings/test.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+"""Local test settings and globals which allows us to run our test suite
+locally.
+"""
+
+
+from settings.base import *
+
+
+########## DEBUG
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+# serve media through the staticfiles app.
+SERVE_MEDIA = DEBUG
+
+
+########## TEST
+TEST_RUNNER = 'testrunner.OurCoverageRunner'
+
+COVERAGE_MODULE_EXCLUDES = [
+ 'tests$', 'settings$', 'urls$', 'locale$',
+ 'migrations', 'fixtures', 'big_email_send$',
+ 'load_dev_data$', 'fix_grid_element$',
+ 'package_updater$', 'searchv2_build$'
+]
+COVERAGE_MODULE_EXCLUDES += PREREQ_APPS + ["djkombu", ]
+COVERAGE_REPORT_HTML_OUTPUT_DIR = "coverage"
+
+
+########## DATABASES
+DATABASES = {
+ "default": {
+ "ENGINE": "django.db.backends.sqlite3",
+ "NAME": ":memory:",
+ "USER": "",
+ "PASSWORD": "",
+ "HOST": "",
+ "PORT": "",
+ },
+}
Please sign in to comment.
Something went wrong with that request. Please try again.