skip to navigation
skip to content

pytest-django-haystack 0.3.0

Cleanup your Haystack indexes between tests

pytest-django-haystack

pytest-django-haystack is a plugin for pytest and pytest-django 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"])
 
File Type Py Version Uploaded on Size
pytest-django-haystack-0.3.0.tar.gz (md5) Source 2017-09-03 2KB
pytest_django_haystack-0.3.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-09-03 3KB