Metadata-Version: 2.1
Name: pytest-invenio
Version: 1.3.4
Summary: Pytest fixtures for Invenio.
Home-page: https://github.com/inveniosoftware/pytest-invenio
Author: CERN
Author-email: info@inveniosoftware.org
License: MIT
Keywords: invenio pytest
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Environment :: Web Environment
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Requires-Dist: check-manifest (>=0.25)
Requires-Dist: coverage (<5.0.0,>=4.0)
Requires-Dist: docker-services-cli (>=0.1.0)
Requires-Dist: isort (>=4.3)
Requires-Dist: pydocstyle (>=2.0.0)
Requires-Dist: pytest (>=4.6.1)
Requires-Dist: pytest-cov (>=2.5.1)
Requires-Dist: pytest-flask (<1.0.0,>=0.15.1)
Requires-Dist: pytest-pep8 (>=1.0.6)
Requires-Dist: selenium (>=3.7.0)
Provides-Extra: all
Requires-Dist: Sphinx (>=1.8.0) ; extra == 'all'
Requires-Dist: elasticsearch-dsl (<7.0.0,>=6.0.0) ; extra == 'all'
Requires-Dist: elasticsearch (<7.0.0,>=6.0.0) ; extra == 'all'
Requires-Dist: invenio-celery (>=1.2.0) ; extra == 'all'
Requires-Dist: invenio-db (<1.1.0,>=1.0.4) ; extra == 'all'
Requires-Dist: invenio-files-rest (>=1.1.1) ; extra == 'all'
Requires-Dist: invenio-mail (<1.1.0,>=1.0.0) ; extra == 'all'
Requires-Dist: invenio-search (<1.3.0,>=1.2.3) ; extra == 'all'
Requires-Dist: six (>=1.12.0) ; extra == 'all'
Requires-Dist: urllib3 (>=1.23) ; extra == 'all'
Provides-Extra: docs
Requires-Dist: Sphinx (>=1.8.0) ; extra == 'docs'
Provides-Extra: tests
Requires-Dist: elasticsearch-dsl (<7.0.0,>=6.0.0) ; extra == 'tests'
Requires-Dist: elasticsearch (<7.0.0,>=6.0.0) ; extra == 'tests'
Requires-Dist: invenio-celery (>=1.2.0) ; extra == 'tests'
Requires-Dist: invenio-db (<1.1.0,>=1.0.4) ; extra == 'tests'
Requires-Dist: invenio-files-rest (>=1.1.1) ; extra == 'tests'
Requires-Dist: invenio-mail (<1.1.0,>=1.0.0) ; extra == 'tests'
Requires-Dist: invenio-search (<1.3.0,>=1.2.3) ; extra == 'tests'
Requires-Dist: six (>=1.12.0) ; extra == 'tests'
Requires-Dist: urllib3 (>=1.23) ; extra == 'tests'

..
    This file is part of pytest-invenio.
    Copyright (C) 2018 CERN.

    pytest-invenio is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

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

.. image:: https://img.shields.io/travis/inveniosoftware/pytest-invenio.svg
        :target: https://travis-ci.org/inveniosoftware/pytest-invenio

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


..
    This file is part of pytest-invenio.
    Copyright (C) 2018-2020 CERN.

    pytest-invenio is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

Changes
=======

Version 1.3.4 (released 2020-09-15)

- Add `entrypoints` fixture to allow injecting extra entry points during
  testing so that you avoid manual registration of e.g. mappings and schemas.

Version 1.3.3 (released 2020-08-27)

- Add `docker-services-cli` as dependency to enable Invenio modules to
  perform reproducible tests.

Version 1.3.2 (released 2020-05-19)

- Move check-manifest, coverage, isort, pydocstyle, pytest-flask and
  pytest-pep8 from test to install requirements to provide them as centrally
  managed dependencies.

Version 1.3.1 (released 2020-05-12)

- Uninstalls numpy in Travis due to incompatibilities with
  elasticsearch-py.

Version 1.3.0 (released 2020-03-19)

- Removes support for Python 2.7.

Version 1.2.2 (released 2020-05-07)

- Uninstalls numpy in Travis due to incompatibilities with
  elasticsearch-py.
- Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0.
- Set maximum version of Werkzeug to 1.0.0 due to incompatible imports.
- Set maximum version of Flask to 1.1.0 due to incompatible imports.
- Set maximum version of Pytest-Flask to 1.0.0 due to breaking changes.
- Set minimum version of Invenio-Search to 1.2.3 and maximum to 1.3.0.

Version 1.2.1 (released 2019-11-13)

- Fixes instance path fixture to also set the static folder.

Version 1.2.0 (released 2019-07-31)

- Adds fixture for creating default Location.
- Adds fixture for creating Bucket from directory with files.

Version 1.1.1 (released 2019-05-21)

- Adds pytest-cov as install dependency.

Version 1.1.0 (released 2019-02-15)

- Changes name of fixture from celery_config to celery_config_ext due to
  unreliable overwriting of celery_config fixture name.

Version 1.0.6 (released 2018-12-03)

- Fixes overwriting of celery_config fixture

Version 1.0.5 (released 2018-10-08)

- Adds default Content Security Policy header to the app configuration.
- Fixes issue with default tests scope.

Version 1.0.4 (released 2018-08-14)

- Bumps pytest minimun version to 3.8.0.

Version 1.0.3 (released 2018-09-05)

- Moves module dependent imports inside the fixture functions in order to
  decouple dependencies for Invenio apps or modules that might not be using
  them.

Version 1.0.2 (released 2018-05-25)

Version 1.0.1 (released 2018-04-17)

Version 1.0.0 (released 2018-03-22)


