From 7325b77b736ff722d4bdc539f5896352bde375a1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 27 Dec 2015 11:50:35 +0100 Subject: Add explicitly parent directory to the sys path when running tests --- example_project/settings.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example_project') 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) -- cgit v1.2.3