Skip to main content

Pytest fixtures for Invenio.

Project description

https://img.shields.io/travis/inveniosoftware/pytest-invenio.svg https://img.shields.io/coveralls/inveniosoftware/pytest-invenio.svg https://img.shields.io/pypi/v/pytest-invenio.svg

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

Changes

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)

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-invenio-1.0.6.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_invenio-1.0.6-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-invenio-1.0.6.tar.gz.

File metadata

  • Download URL: pytest-invenio-1.0.6.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for pytest-invenio-1.0.6.tar.gz
Algorithm Hash digest
SHA256 2a980fe0cb1834e30e887b19576cd52d57b6bc02afca6c3343e59895f3413b82
MD5 764744de01173a69e16598c50c4f68ef
BLAKE2b-256 211c1215211bd9ec33d5ce96a058314cee2c54aae89ea78dba27be4947d8fa43

See more details on using hashes here.

File details

Details for the file pytest_invenio-1.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_invenio-1.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for pytest_invenio-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 096063be36e57586db47e735ea848d0577b7b9b54d868a852af56cb5448dd93b
MD5 f10b525469f9de7083a9fd609256372f
BLAKE2b-256 f486e92396dbda3344184c2f3ec12ca7fabcb7974a6da615bea54677642db972

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page