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

rouge8/pytest-django-haystack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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