Skip to main content

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.

Source Distribution

pytest-django-haystack-0.3.0.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page