예제 #1
0
    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)
        WirecloudRemoteTestCase.tearDown(self)
예제 #2
0
    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)
        WirecloudRemoteTestCase.tearDown(self)
예제 #3
0
    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)
예제 #4
0
    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)