Pytest fixtures for Invenio.
Project description
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 0.1.0 (released TBD)
Initial public release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_invenio-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 335c8415661b9cdd86f2c37abf6f116c1073b50137535f73e8650713248b2215 |
|
MD5 | ad54e46fcba313c0712d2e2029aa5f1a |
|
BLAKE2b-256 | 70dd5c9c8f3659d67b2a47aa556db9d2ec58fe3607f7a6469c0bf3ae498a4a94 |