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
File details
Details for the file pytest_cratedb-0.4.0.tar.gz
.
File metadata
- Download URL: pytest_cratedb-0.4.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2dcb37e529c6338cc3116bdf54162974f0dbc67fb3b4b99ead943265f4c0d57 |
|
MD5 | 444f23213a0e4e20dbefa68efef8d5a0 |
|
BLAKE2b-256 | 5497ea330397b9cb6eb206484abe4520fde30f243cb157e7665a2256b047f050 |
File details
Details for the file pytest_cratedb-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_cratedb-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0961072ccd1e6d37cfb469457de0b1f4d9efdc7d2e4a22e3d64ee7d280a07d |
|
MD5 | 5837669a41f85abc9c762c7bbc3c354f |
|
BLAKE2b-256 | 381023afc07955e9b99b1ba454eb80c367d92817c1fe060be2121630a394cbb6 |