pculture/mirocommunity — comment on commit f87792d29420f1181a8c268708386cf1978063fa
File: localtv/search_indexes.py line 127
By melinath:

Just noticed this bit. I'm... pretty sure we shouldn't (need to) do this. Having one behavior for testing and another behavior for "normal" use is dangerous. I assume the purpose is to prevent fake instances from triggering the call to haystack for index updates. If that's the case, we would probably be better off disconnecting and reconnecting the signals - or even just unregistering the index for the duration of the tests.