Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Cleanup your Haystack indexes between tests

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-django-haystack, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_django_haystack-0.3.0-py2.py3-none-any.whl (3.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-django-haystack-0.3.0.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page