Manages CrateDB instances during your integration tests
Project description
pytest-crate is a plugin for pytest for writing integration tests that interact with CrateDB.
Usage
pytest-crate provides a crate session fixture which downloads, starts and stops a CrateDB node.
>>> def test_database_access(crate):
... # perform database access
... ...
The CrateDB version can be specified using the --crate-version option when running pytest. By default, the latest stable version of CrateDB is used.
See tests/test_layer.py for further examples.
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
pytest-crate-0.3.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pytest_crate-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d52eca552a5be54519f6b07eecaa5a85b89649037bce1cf18d2fe8a3fd6e094 |
|
MD5 | d305ef53dbc10c5282cf77934aa4cfc3 |
|
BLAKE2b-256 | 019224e82a568cc9f5432e19f107400d1cd9bf4ce4a77c22b14a7b563d708ce3 |