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.2.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file pytest-crate-0.2.0.tar.gz
.
File metadata
- Download URL: pytest-crate-0.2.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28b71bcf846435a5500aecf622fa771778f5abdd548de6972d7c34230ad5799 |
|
MD5 | e20fc9b83eef9929dad969206e2ec863 |
|
BLAKE2b-256 | 74e9ef51282002b3f52496d410a19dbdbc4649d0b571923915dded282da5fe02 |
File details
Details for the file pytest_crate-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_crate-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccf87aaaad05ff4fa1f444a2431df7d4ca2c6558c8d4366a81766f871c896ee3 |
|
MD5 | 267d441629c878b5ad2336ed6c406df8 |
|
BLAKE2b-256 | 85a183a106ce3ef04027194b097ba983222fafaafba776f2eed32749b590f580 |