commit 404d499877c050f706ca0f713d1c8ef0e5a88889 Author: Arturo Filastò art@fuffa.org Date: Mon Sep 29 14:10:49 2014 +0200
Set the datadirectory to be that of the repo. --- ooni/tests/bases.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ooni/tests/bases.py b/ooni/tests/bases.py index a359ef8..be2a1fa 100644 --- a/ooni/tests/bases.py +++ b/ooni/tests/bases.py @@ -1,3 +1,5 @@ +import os + from twisted.trial import unittest
from ooni.settings import config @@ -5,7 +7,9 @@ from ooni.settings import config
class ConfigTestCase(unittest.TestCase): def setUp(self): + config.global_options['datadir'] = os.path.join(__file__, '..', '..', '..', 'data') + config.global_options['datadir'] = os.path.abspath(config.global_options['datadir']) config.initialize_ooni_home("ooni_home")
def tearDown(self): - config.read_config_file() \ No newline at end of file + config.read_config_file()
tor-commits@lists.torproject.org