Skip to main content

Manage CrateDB instances for integration tests

Project description

Build status Status Coverage PyPI Downloads

PyPI Version License Python Version

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.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_cratedb-0.4.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_cratedb-0.4.1.tar.gz.

File metadata

  • Download URL: pytest_cratedb-0.4.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pytest_cratedb-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f25bae2d064fda41d085f0f97a0f1f694481b523dbff3f9406a4029091f5882a
MD5 f78467387002237c200b9d0c3120cd57
BLAKE2b-256 caa90f2f54d1acd0cb5350f76eb5f6775ec07e93afcd9f96f41567f54d01a64a

See more details on using hashes here.

File details

Details for the file pytest_cratedb-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_cratedb-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pytest_cratedb-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b57c8bd30c5b9df4270ea48b2f62206a0dfcf1fcc0f4ba863aee609e0e178d2
MD5 7965a356592093806e086fdebd1030f0
BLAKE2b-256 14b79b72dcd9211eaf42c635a6cdca634d21b996fe5ac86f8fd3d6850eb3601b

See more details on using hashes here.

Supported by

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