Skip to main content

Manage CrateDB instances for integration tests

Project description

Build status Coverage PyPI Version Python Version PyPI Downloads Status License

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_cratedb-0.4.0.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

pytest_cratedb-0.4.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page