I am trying to test that my search View renders the results from my search correctly, however, the search uses the indexes from my live database and not my test database, so when I create some objects for my test case, they are not reflected on the search page.
How can I make haystack use an index of the search database, or better still, just fake it and not use an index, but instead use the database as is. This would be fine for that test case and probably faster.
I could only seem to find this article when googling: http://ift.tt/1Dmuun1 and it does not work with the current versions.
Pip versions:
django==1.7.5
django-haystack==2.4.0
Aucun commentaire:
Enregistrer un commentaire