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.3 (released 2018-09-05)

  • Moves module dependent imports inside the fixture functions in order to decouple dependencies for Invenio apps or modules that might not be using them.

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.3.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

pytest_invenio-1.0.3-py2.py3-none-any.whl (15.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pytest-invenio-1.0.3.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.6

File hashes

Hashes for pytest-invenio-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8bf9b8d2bec2748f49515c664838d95ab177b1e5bf8ffa9766840610ca6d77f6
MD5 f52d64c692a811efacb63631827b2bbf
BLAKE2b-256 385c674ff357582775b64f961e490ad4d110022cc9b411c75f9c81e118a36750

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pytest_invenio-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.6

File hashes

Hashes for pytest_invenio-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e7f0a49baeb0a0d0d12a48db211fd3a034e7f7a7a951e5daa16db90697f91e0
MD5 2dd4dcf8b26659ef17a8f2e0f07ce38f
BLAKE2b-256 0f4af63e885018c2069f1b0614bf88f8bfcf2940adc4799d868f6cb53d6d7896

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page