Skip to main content

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


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

Uploaded Source

Built Distribution

pytest_crate-0.1.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-crate-0.1.0.tar.gz.

File metadata

  • Download URL: pytest-crate-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 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

Hashes for pytest-crate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec64338c987fc04d748e40d23bc5b9c7bed3566d7fcd04485e14649c525dd01e
MD5 4d68b9ffe5cb955d2c1f4b98e276b893
BLAKE2b-256 b7fc0a5ad8f3e3390557a18fe04209f916d7e457da5dd201213b56dba2e70254

See more details on using hashes here.

File details

Details for the file pytest_crate-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_crate-0.1.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

Hashes for pytest_crate-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6d12a7dd41675f14112143e65129e4347cb349907d0b285520d984b59c658bdd
MD5 6630e3034b2f284864dcabf5d1ebdc33
BLAKE2b-256 b561807b90c32756abda719c7bc175f086d00a01e76bc1e38dd01d3018aebbb2

See more details on using hashes here.

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