Ignore:
Timestamp:
01/18/12 11:59:51 (8 years ago)
Author:
pcosquer
Message:

3D branch: merge changes from trunk (rev [661])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3D/openPLM/plmapp/tests/base.py

    r474 r662  
    66from openPLM.plmapp.models import GroupInfo 
    77from openPLM.plmapp.controllers import PLMObjectController 
    8  
    9 import os.path 
    10 import shutil 
    11 from django.conf import settings 
    128 
    139class BaseTestCase(TestCase): 
     
    4541 
    4642    def tearDown(self): 
    47         if os.path.exists(settings.HAYSTACK_XAPIAN_PATH): 
    48             shutil.rmtree(settings.HAYSTACK_XAPIAN_PATH) 
     43        from haystack import backend 
     44        backend.SearchBackend.inmemory_db = None 
    4945        super(BaseTestCase, self).tearDown() 
    5046 
Note: See TracChangeset for help on using the changeset viewer.