From 32622951f2e0ee9a0513f3f407433a904f10486a 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