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
pip install pytest-django-haystack
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
Built Distribution
Close
Hashes for pytest-django-haystack-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43547d5d8a816d1b460835a2b384a8ddac985c06ff79ab3f9216107460174f80 |
|
MD5 | a88829ff2476be130e5681fe18da6a38 |
|
BLAKE2b-256 | 46e287919414724ebed931249fe59def028c429e133f63c12c7dcb655e7c8519 |
Close
Hashes for pytest_django_haystack-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0232ba7cda4474cfb169c6f31eca1c2428d1cfac267cd040715e3516ef5afade |
|
MD5 | 799018dcb4cecf3f28cc7bc105648f1b |
|
BLAKE2b-256 | 61a65e87ce1ab2bd2f870606df8869921bd74ca8459de395fc382e2210f726c2 |