Running tests with Haystack leaves behind 1000+ indexes
Running tests with Haystack leaves behind 1000+ indexes in Solr which lead to low performance of the full text search. I am guessing that tearDown() or something may be useful to avoid this problem. I hope the Askbot team will solve this soon.
Here is some additional information that may be relevant. I turned on Haystack with Solr following the instructions at http://askbot.org/doc/solr.html I get "Ran 621 tests in 2048.910s" with all tests passing.
Update: Using @override_settings to remove 'haystack' from INSTALLED_APPS as follows did not work. I am suspecting @override_settings does not work with INSTALLED_APPS.
def remove_haystack(appTuple):
appList = list(appTuple)
appList.remove('haystack')
return(tuple(appList))
@override_settings(INSTALLED_APPS=remove_haystack(settings.INSTALLED_APPS))
class OnScreenUpdateNotificationTests(TestCase):
# more codes
Comments