Pytest helpers for testing projects using Meilisearch
Project description
pytest-meilisearch
pytest helpers for testing Python projects using Meilisearch.
Installation
Using a virtual environment is recommended for installing this package. Once the virtual environment is created and activated, install the package with:
pip install pytest-meilisearch
Usage
Note that to use any of the async options you also need to install an async test helper such as pytest-asyncio.
Configuration
Flags
--meilisearch-host
: Host where the Meilisearch test server is running. For examplehttp://localhost
. Default =http://127.0.0.1
(This is the same ashttp://localhost
).--meilisearch-port
: Port where the Meilisearch test server is running. For example7700
. Default =7700
.--meilisearch-master-key"
: The master key for the Meilisearch test server. Default =None
.
Settings
meilisearch_client_scope
: Modify the scope of the async_client and client fixtures. Valid settings arefunction
,module
,package
, orsession
. Default =session
.meilisearch_clear_indexes
: Controls is indexes are deleted after each tests. This can be useful to ensure that tests don't interfer with each other. Valid options arenone
= indexes are not deleted,async
= indexes are asyncronously deleted after each test, orsync
= indexes are syncronously deleted between each test. Default =none
.
Contributing
If you are interested in contributing to this project please see our contributing guide.
Project details
Release history Release notifications | RSS feed
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_meilisearch-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8757771328a9e62d0a46fd1aaa3c97457bcb8b8e4bfa1cb001a2068f756e86d3 |
|
MD5 | f2469f051e94686a4b24e9fabaf07a5d |
|
BLAKE2b-256 | 38c16666627f93b6a46d8782b7cc2b251584182cf1fd3a8cbda231bba67549da |