Skip to content
Snippets Groups Projects
Commit 597d659a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[common] Remove prefix and cache after tests

parent c9aa79ee
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -25,7 +25,11 @@
# #
###############################################################################
import os
import shutil
from django.test import TestCase
from django.conf import settings
from urlparse import urlparse
......@@ -38,6 +42,15 @@ class BaseTestCase(TestCase):
class Meta:
model = None
def tearDown():
if os.path.exists(settings.CACHE_ROOT):
shutil.rmtree(settings.CACHE_ROOT)
if os.path.exists(settings.PREFIX):
shutil.rmtree(settings.PREFIX)
def checkObjectDBSharingPreferences(self, contribution, reference):
if not(reference.has_key('status')):
reference['status'] = 'private'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment