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 details)

Uploaded Source

Built Distribution

pytest_django_haystack-0.3.0-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-django-haystack-0.3.0.tar.gz.

File metadata

File hashes

Hashes for pytest-django-haystack-0.3.0.tar.gz
Algorithm Hash digest
SHA256 43547d5d8a816d1b460835a2b384a8ddac985c06ff79ab3f9216107460174f80
MD5 a88829ff2476be130e5681fe18da6a38
BLAKE2b-256 46e287919414724ebed931249fe59def028c429e133f63c12c7dcb655e7c8519

See more details on using hashes here.

File details

Details for the file pytest_django_haystack-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_django_haystack-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0232ba7cda4474cfb169c6f31eca1c2428d1cfac267cd040715e3516ef5afade
MD5 799018dcb4cecf3f28cc7bc105648f1b
BLAKE2b-256 61a65e87ce1ab2bd2f870606df8869921bd74ca8459de395fc382e2210f726c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page