[Answer]-How to go about testing a django app which extensively uses sphinxsearch?

1👍

Not much you have to do: Change the settings of sphinx when you run a test. If you specify the sphinx settings in your django project.settings file you would have to do this:

  1. create a sphinx testdatabase
  2. create a settings.py specifically for testing
  3. python ./manage.py test –settings=project.sphinxtest.settings

If you specifiy your sphinx settings elsewhere, do something similar. Important is to use different settings for sphinx while testing, as there you specify the database sphinx should use.

Without more details about your implementation, this is the most that can be said to help you…

👤marue

Leave a comment