Manage CrateDB instances for integration tests
Project description
pytest-cratedb is a plugin for pytest for writing integration tests that interact with CrateDB.
The CrateDB version can be specified using the --crate-version option when running pytest. By default, the latest stable version of CrateDB is used.
Usage
pytest-cratedb provides a pytest crate session fixture which downloads, starts and stops a CrateDB node.
>>> def test_database_access(crate):
... # perform database access
... ...
Examples
See tests/test_layer.py for further examples.
Migration Notes
This package, pytest-cratedb is a drop-in replacement for its predecessor package pytest-crate. It is recommended to uninstall pytest-crate before installing pytest-cratedb in your Python environment.
Documentation and Help
Contributions
The Pytest CrateDB Plugin is an open source project, and is managed on GitHub. We appreciate contributions of any kind.
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
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_cratedb-0.4.1.tar.gz.
File metadata
- Download URL: pytest_cratedb-0.4.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25bae2d064fda41d085f0f97a0f1f694481b523dbff3f9406a4029091f5882a
|
|
| MD5 |
f78467387002237c200b9d0c3120cd57
|
|
| BLAKE2b-256 |
caa90f2f54d1acd0cb5350f76eb5f6775ec07e93afcd9f96f41567f54d01a64a
|
File details
Details for the file pytest_cratedb-0.4.1-py3-none-any.whl.
File metadata
- Download URL: pytest_cratedb-0.4.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b57c8bd30c5b9df4270ea48b2f62206a0dfcf1fcc0f4ba863aee609e0e178d2
|
|
| MD5 |
7965a356592093806e086fdebd1030f0
|
|
| BLAKE2b-256 |
14b79b72dcd9211eaf42c635a6cdca634d21b996fe5ac86f8fd3d6850eb3601b
|