Metadata-Version: 2.4
Name: pytest-invenio
Version: 4.0.2
Summary: Pytest fixtures for Invenio.
Project-URL: Repository, https://github.com/inveniosoftware/pytest-invenio
Author-email: CERN <info@inveniosoftware.org>
License-Expression: MIT
License-File: AUTHORS.rst
License-File: LICENSE
Keywords: invenio,pytest
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.9
Requires-Dist: check-manifest>=0.42
Requires-Dist: coverage<8,>=5.3
Requires-Dist: docker-services-cli>=0.4.0
Requires-Dist: pytest-cov>=3.0.0
Requires-Dist: pytest-flask>=1.2.0
Requires-Dist: pytest-github-actions-annotate-failures>=0.2.0
Requires-Dist: pytest-isort>=3.0.0
Requires-Dist: pytest-pycodestyle>=2.2.0
Requires-Dist: pytest-pydocstyle>=2.2.3
Requires-Dist: pytest<9.0.0,>=6
Requires-Dist: selenium<5,>=3.7.0
Requires-Dist: snowballstemmer<3,>=2.2.0
Provides-Extra: docs
Provides-Extra: elasticsearch7
Requires-Dist: invenio-search[elasticsearch7]<4.0.0,>=3.0.0; extra == 'elasticsearch7'
Provides-Extra: opensearch1
Requires-Dist: invenio-search[opensearch1]<4.0.0,>=3.0.0; extra == 'opensearch1'
Provides-Extra: opensearch2
Requires-Dist: invenio-search[opensearch2]<4.0.0,>=3.0.0; extra == 'opensearch2'
Provides-Extra: tests
Requires-Dist: black<26.0.0; extra == 'tests'
Requires-Dist: invenio-celery<3.0.0,>=2.0.0; extra == 'tests'
Requires-Dist: invenio-db<3.0.0,>=2.0.0; extra == 'tests'
Requires-Dist: invenio-files-rest<5.0.0,>=4.0.0; extra == 'tests'
Requires-Dist: invenio-mail<3.0.0,>=1.0.2; extra == 'tests'
Requires-Dist: invenio-search<4.0.0,>=3.0.0; extra == 'tests'
Requires-Dist: pytest-black>=0.6.0; extra == 'tests'
Requires-Dist: sphinx>=4.5; extra == 'tests'
Description-Content-Type: text/x-rst

..
    SPDX-FileCopyrightText: 2018 CERN.
    SPDX-License-Identifier: MIT

================
 pytest-invenio
================

.. image:: https://github.com/inveniosoftware/pytest-invenio/workflows/CI/badge.svg
        :target: https://github.com/inveniosoftware/pytest-invenio/actions?query=workflow%3ACI

.. image:: https://img.shields.io/coveralls/inveniosoftware/pytest-invenio.svg
        :target: https://coveralls.io/r/inveniosoftware/pytest-invenio

.. image:: https://img.shields.io/pypi/v/pytest-invenio.svg
        :target: https://pypi.org/pypi/pytest-invenio

Pytest fixtures for Invenio.

The package offers a number of features to help test Invenio based
applications:

- Less boilerplate: Using the fixtures you can keep your ``conftest.py`` short
  and focused.
- Database re-use: database tests are running inside a transaction which is
  rolled back after the test.
- End-to-end testing: Selenium tests can easily be switched on/off, and in case
  of test failures a screenshot is taken (with possibility to output in the
  console in base64-encoding - useful on e.g. TravisCI).
- Application configuration for testing (e.g. disable CSRF protection in forms
  and HTTPS requirement).
- JSON decoding support in Flask test client for easier API testing.
- Batteries included: further fixtures help with e.g. mail sending and CLI
  tests.

Further documentation is available on https://pytest-invenio.readthedocs.io/.
