From dabc45c80a07752fc9eee4abe515ecce2d7ddc81 Mon Sep 17 00:00:00 2001
From: Bastian Kleineidam <calvin@debian.org>
Date: Thu, 24 Jan 2008 20:27:39 +0100
Subject: Make running unit tests easier
Added a Makefile with "test" target and a default unittest
settings file. This enables users to easily run unittests
with "make test".
Signed-off-by: Bastian Kleineidam <calvin@debian.org>
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a431e52
-
|
+
|
|
| 1 | |
| 2 | # run unit tests |
| 3 | test: |
| 4 | DJANGO_SETTINGS_MODULE=settings_unittest PYTHONPATH=.:tests python tests/runtests.py -v1 |
diff --git a/tests/settings_unittest.py b/tests/settings_unittest.py
new file mode 100644
index 0000000..b9e1166
-
|
+
|
|
| 1 | DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. |
| 2 | DATABASE_NAME = ':memory:' # Or path to database file if using sqlite3. |
| 3 | DATABASE_USER = '' # Not used with sqlite3. |
| 4 | DATABASE_PASSWORD = '' # Not used with sqlite3. |
| 5 | DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
| 6 | DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
| 7 | ROOT_URLCONF = 'foo.urls' |