semvec/pypi-packages huggingface dataset:
pytest-django-haystack 0.3.0
Cleanup your Haystack indexes between tests

pytest-django-haystack
======================

pytest-django-haystack is a plugin for `pytest <http://pytest.org/>`_ and `pytest-django <http://pytest-django.readthedocs.org/en/latest/>`_ that rebuilds the Haystack index before every test and clears it again after.

Quick start
===========

1. ``pip install pytest-django-haystack``
2. Mark tests with the ``pytest.mark.haystack`` marker.


You can optionally specify which haystack connection(s) should be used::

    @pytest.mark.haystack(connection=["test"])