Skip to main content

pytest pyramid providing basic fixtures for testing pyramid applications with pytest test suite

Project description

pytest_pyramid

Latest PyPI version Documentation Status Wheel Status Supported Python Versions License

Package status

Tests Coverage Status Requirements Status

pytest_pyramid provides basic fixtures for testing pyramid applications with pytest test suite.

By default, pytest_pyramid will create two fixtures: pyramid_config, which creates configurator based on config.ini file, and pyramid_app, which creates TestApp based on Configurator returned by pyramid_config.

Command line options

  • –pc - pyramid configuration file based on which pytest_pyramid will create test app

Documentation

http://pytest-pyramid.readthedocs.io/en/latest/

TODO

This goal should make it in to 1.0 major release.

  1. provide a pyramid_proc fixture that will start pyramid app process using summon_process

Tests

To run tests run this command:

py.test –pc tests/pyramid.test.ini

CHANGES

0.3.1

  • fixed pytest deprecation warning

0.3.0

  • [feature] changed pyramid_config fixture scope to session.

0.2.0

  • [feature] support pyramid’s config inheritance with use = config:other.file.ini - Thanks Eric Hulser

  • [feature] dropped support for python 3.2, added support for python 3.4 and 3.5

0.1.1

  • make factories condition to check parameters against None

0.1.0

  • initial release

  • pyramid_config fixture factory and default fixture

  • pyramid_app fixture factory and default fixture

  • documentation

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_pyramid-0.3.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

pytest_pyramid-0.3.1-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest_pyramid-0.3.1.tar.gz.

File metadata

  • Download URL: pytest_pyramid-0.3.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for pytest_pyramid-0.3.1.tar.gz
Algorithm Hash digest
SHA256 bdc5ddfab7ef11d2351af9e530ad528f2b54e9a35b051bc643d5c31d10e7fd51
MD5 ebaa19ebf67b30619668a9ce0591ae86
BLAKE2b-256 b83216d072b92c65af4b31460958fa0771da3bfaa3a44fd7749e1adf4767fd89

See more details on using hashes here.

File details

Details for the file pytest_pyramid-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_pyramid-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for pytest_pyramid-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20a5fca083617451c25bab98683e755615eee451bfea51a709a78dfe8b400890
MD5 a190e5d3b14ea370735ad35fbef730eb
BLAKE2b-256 7f39fb0a14200f162d6d5443b52d388c00cde2111f42ffc5b964e10719d1352f

See more details on using hashes here.

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