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.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.2.tar.gz (28.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.2-py2.py3-none-any.whl (15.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for pytest-invenio-1.0.2.tar.gz
Algorithm Hash digest
SHA256 65e6a70b9dd2c663946e522ee39d210e52ac7f699f52a216f80eb3c3f9b11c32
MD5 63f2b1016ee7adba3f11e72aadf2cd72
BLAKE2b-256 b814618cea065da48672f51622ff406b1fa6391f861105c83286248509d9c825

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_invenio-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6b1bf74d8fc7ff0667d71bf49e1f62e0f6d58eb174c1931c8b1e7819272cc2f
MD5 5603d3d9f359496e1b5b124385feaade
BLAKE2b-256 f6872c92de9c888bc45926257869c3a7f85c67ca7b5caefa85d999cad6a4f185

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