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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-django-haystack-0.3.0.tar.gz.
File metadata
- Download URL: pytest-django-haystack-0.3.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43547d5d8a816d1b460835a2b384a8ddac985c06ff79ab3f9216107460174f80
|
|
| MD5 |
a88829ff2476be130e5681fe18da6a38
|
|
| BLAKE2b-256 |
46e287919414724ebed931249fe59def028c429e133f63c12c7dcb655e7c8519
|
File details
Details for the file pytest_django_haystack-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_django_haystack-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0232ba7cda4474cfb169c6f31eca1c2428d1cfac267cd040715e3516ef5afade
|
|
| MD5 |
799018dcb4cecf3f28cc7bc105648f1b
|
|
| BLAKE2b-256 |
61a65e87ce1ab2bd2f870606df8869921bd74ca8459de395fc382e2210f726c2
|