Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Latest commit

 

History

History
16 lines (9 loc) · 514 Bytes

README.rst

File metadata and controls

16 lines (9 loc) · 514 Bytes

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"])