def tearDown(self): from django.conf import settings for searcher in get_available_search_engines(): searcher.clear_cache() shutil.rmtree(settings.WIRECLOUD_INDEX_DIR, ignore_errors=True) LiveServerTestCase.tearDown(self)
def tearDown(self): from django.conf import settings for searcher in get_available_search_engines(): searcher.clear_cache() shutil.rmtree(settings.WIRECLOUD_INDEX_DIR, ignore_errors=True) LiveServerTestCase.tearDown(self)
def tearDown(self): from django.conf import settings if self.clear_search_indexes: management.call_command('clear_index', interactive=False, verbosity=0) # Reload the connection haystack.connections.connections_info = settings.HAYSTACK_CONNECTIONS haystack.connections.reload('default') time.sleep(0.2) LiveServerTestCase.tearDown(self) WirecloudRemoteTestCase.tearDown(self)
def tearDown(self): from django.conf import settings if self.clear_search_indexes: management.call_command('clear_index', interactive=False, verbosity=0) # Reload the connection haystack.connections.connections_info = settings.HAYSTACK_CONNECTIONS haystack.connections.reload('default') time.sleep(0.2) LiveServerTestCase.tearDown(self) WirecloudRemoteTestCase.tearDown(self)
def tearDown(self): self.browser.quit() LiveServerTestCase.tearDown(self)