From f503f9b7c81baeaf4cb6430af385a5cf5fe535fe Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 4 Oct 2009 18:00:13 +0200 Subject: [PATCH] [unittest] add client module paths to sys.path --- libraries/tests/run | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/tests/run b/libraries/tests/run index fa7e975c9..1f118c894 100755 --- a/libraries/tests/run +++ b/libraries/tests/run @@ -1,13 +1,19 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- import os +import sys locale_dir = os.path.realpath(os.path.join(os.getcwd(), "i18n")) os.environ['TEXTDOMAINDIR'] = locale_dir -import sys import unittest +sys.path.insert(0,'../client') +sys.path.insert(0,'../../client') sys.path.insert(0,'.') sys.path.insert(0,'../') +# set unit testing mode +from entropy.const import etpSys +etpSys['unittest'] = True from tests import db, client, server, misc, transceivers, tools, i18n rc = 0