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:
- create a sphinx testdatabase
- create a settings.py specifically for testing
- 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…
Source:stackexchange.com