summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-12-27 11:50:35 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-12-27 11:50:35 +0100
commit7325b77b736ff722d4bdc539f5896352bde375a1 (patch)
treeaed6e9a4f0b25f9a125c62938023beaef3ab126e /example_project
parentc1c13e36d0d28b427a6031bf3ecde2aae86275fa (diff)
downloadIshtar-7325b77b736ff722d4bdc539f5896352bde375a1.tar.bz2
Ishtar-7325b77b736ff722d4bdc539f5896352bde375a1.zip
Add explicitly parent directory to the sys path when running tests
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index a5db9ecc3..e124198aa 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -10,6 +10,9 @@ DEBUG_TOOLBAR = False
TEMPLATE_DEBUG = DEBUG
SQL_DEBUG = False
+if "test" in sys.argv:
+ sys.path.insert(0, '..')
+
IMAGE_MAX_SIZE = (1024, 768)
THUMB_MAX_SIZE = (300, 300)