Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 731 Bytes

README.rst

File metadata and controls

28 lines (19 loc) · 731 Bytes

Pytest CrateDB

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.