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.
Release files for pytest-cratedb 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_cratedb-0.4.1.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_cratedb-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / pytest_cratedb-0.4.1.tar.gz
| Download URL | pytest_cratedb-0.4.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f25bae2d064fda41d085f0f97a0f1f694481b523dbff3f9406a4029091f5882a
|
|
BLAKE2b-256 checksum How to use checksums |
caa90f2f54d1acd0cb5350f76eb5f6775ec07e93afcd9f96f41567f54d01a64a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / pytest_cratedb-0.4.1-py3-none-any.whl
| Download URL | pytest_cratedb-0.4.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b57c8bd30c5b9df4270ea48b2f62206a0dfcf1fcc0f4ba863aee609e0e178d2
|
|
BLAKE2b-256 checksum How to use checksums |
14b79b72dcd9211eaf42c635a6cdca634d21b996fe5ac86f8fd3d6850eb3601b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|