Commit 8333d686 authored by André Anjos's avatar André Anjos 💬

[backend] At tests, only remove prefix and cache by the end

parent 359bc470
......@@ -234,6 +234,13 @@ PRIORITY_QUEUES = {
}
def tearDownModule():
if os.path.exists(settings.CACHE_ROOT):
shutil.rmtree(settings.CACHE_ROOT)
if os.path.exists(settings.PREFIX):
shutil.rmtree(settings.PREFIX)
class CancelAllExperimentsAPI(APITestCase):
def setUp(self):
......@@ -261,10 +268,6 @@ class CacheCleanUp(TestCase):
def tearDown(self):
shutil.rmtree(self.cache)
if os.path.exists(settings.CACHE_ROOT):
shutil.rmtree(settings.CACHE_ROOT)
if os.path.exists(settings.PREFIX):
shutil.rmtree(settings.PREFIX)
def touch(self, f, times=None):
......@@ -411,13 +414,6 @@ class BaseBackendTestCase(TestCase):
install.install_contributions(prefix, 'test', template_data)
def tearDown(self):
if os.path.exists(settings.CACHE_ROOT):
shutil.rmtree(settings.CACHE_ROOT)
if os.path.exists(settings.PREFIX):
shutil.rmtree(settings.PREFIX)
def check_single(self, xp):
'''Checks user/user/single/1/single'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment