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

Uploaded Source

Built Distribution

pytest_pyramid-0.3.0-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pytest_pyramid-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f904d95e3d2a6e2f55804b1437422e06a84fb3dc3b8fe3e7258eabf30d1a0a5f
MD5 5324d08558f0b3e153a224aa8db62a5b
BLAKE2b-256 bccb580e049f04b77df7b16d5c7f8924d5d5c6ce912d3baf162ac0323119e0a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_pyramid-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce9cc3d6b7db4f5ea559e682e7fcaf4cac8e576096bf6d9ea96cc99337f49a97
MD5 131538a01cdf8020ebf0c250824cf4c9
BLAKE2b-256 1500d0e8b06c8cf4d723ea95332c09da875b54d7eec7c72f343ba3f625e3d31b

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