From e70df3d6d654c13992d5f58b9c2b7606548e3316 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Fri, 23 Sep 2016 15:53:26 -0300 Subject: [#668] Put search index under pixelated subfolder --- service/test/support/integration/app_test_client.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'service/test/support/integration/app_test_client.py') diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py index 352ff9c6..edbb9784 100644 --- a/service/test/support/integration/app_test_client.py +++ b/service/test/support/integration/app_test_client.py @@ -64,12 +64,12 @@ class AppTestAccount(object): self._mail_address = '%s@pixelated.org' % user_id self._soledad = None self._services = None + self.soledad_test_folder = os.path.join(self._leap_home, 'pixelated', self._uuid) @defer.inlineCallbacks def start(self): - soledad_test_folder = os.path.join(self._leap_home, self._uuid) - self.soledad = yield initialize_soledad(tempdir=soledad_test_folder, uuid=self._uuid) - self.search_engine = SearchEngine(self.INDEX_KEY, user_home=soledad_test_folder) + self.soledad = yield initialize_soledad(tempdir=self.soledad_test_folder, uuid=self._uuid) + self.search_engine = SearchEngine(self.INDEX_KEY, user_home=self.soledad_test_folder) self.keymanager = mock() self.mail_sender = self._create_mail_sender() self.mail_store = SearchableMailStore(LeapMailStore(self.soledad), self.search_engine) @@ -105,8 +105,7 @@ class AppTestAccount(object): return self._services def cleanup(self): - soledad_test_folder = os.path.join(self._leap_home, self._uuid) - shutil.rmtree(soledad_test_folder) + shutil.rmtree(self.soledad_test_folder) def _initialize_account(self): self.account = Account(self.soledad, self._user_id) -- cgit v1.2.3