Metadata-Version: 2.1
Name: pytest-crate
Version: 0.3.0
Summary: Manages CrateDB instances during your integration tests
Home-page: https://github.com/chaudum/pytest-crate
Author: Christian Haudum
Author-email: developer@christianhaudum.at
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Pytest
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Database
Requires-Dist: cr8
Requires-Dist: pytest (>=4.0)
Provides-Extra: develop
Requires-Dist: pytest-flake8 ; extra == 'develop'
Requires-Dist: pytest-mypy ; extra == 'develop'
Requires-Dist: pytest-isort ; extra == 'develop'

==============
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.

.. code-block:: python

   >>> 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.


.. _pytest: https://docs.pytest.org
.. _CrateDB: https://crate.io


