Skip to content

inveniosoftware/pytest-invenio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

59065c5 · Dec 2, 2024
Nov 18, 2024
Jun 26, 2022
Dec 2, 2024
Dec 2, 2024
Jun 26, 2022
Jun 26, 2022
Feb 20, 2018
Sep 5, 2018
Dec 2, 2024
Dec 10, 2020
Mar 22, 2018
Mar 22, 2018
Jun 26, 2022
Dec 10, 2020
Apr 4, 2022
Apr 4, 2022
Jun 26, 2022
Sep 22, 2022
Dec 2, 2024
Jun 26, 2022

Repository files navigation

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