Skip to main content

Pytest fixtures for Invenio.

Project description

https://github.com/inveniosoftware/pytest-invenio/workflows/CI/badge.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/.

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-4.0.2.tar.gz (19.7 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-4.0.2-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_invenio-4.0.2.tar.gz.

File metadata

  • Download URL: pytest_invenio-4.0.2.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pytest_invenio-4.0.2.tar.gz
Algorithm Hash digest
SHA256 987074bf8ee7f1c59ef41f96c3725940062a597f322387a59c9d10aeacd40afc
MD5 ce2cb4668281bc6d854eb878e1db6cd6
BLAKE2b-256 bb8630e48972419e9b8aa51d9bd61ee247c076fb500d4bfba23fae5cfb124891

See more details on using hashes here.

File details

Details for the file pytest_invenio-4.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytest_invenio-4.0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pytest_invenio-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85041625a0a4e626649fa1c2a318189b012c8c3223f8783a8534d829af30c4d7
MD5 a15737ca6e9d4bebe128b08fc1b57afe
BLAKE2b-256 1d6c91620b499f54ca616cf141475388fb975e34f78fdbcaba9ceda40818ff32

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