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.pyshort 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 part of the documentation will show you how to get started in using pytest-invenio.
If you are looking for information on a specific function, class or method, this part of the documentation is for you.
Notes on how to contribute, legal information and changes are here for the interested.