Skip to main content

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

Project description

Tests for RandomWords 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.org/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.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.1.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

pytest_pyramid-0.1.1-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pytest_pyramid-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d35e4c0d85034186f93766362c47334ad545d6af2bb0c90dfce49d0332ed5ad8
MD5 a0474f4143334c7536299dd84f3858db
BLAKE2b-256 b612eb478d55417367676cfa658d684c15ec3cea663d7ab55d26af5681706c85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_pyramid-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 44d887f90bec25c7af51fad0f90272c025230fd394215bbfc71f383bf6dd3c3b
MD5 0cd14d0b04c25c6950eda6b7c9c25e81
BLAKE2b-256 0b1c8924438939ea820286d6bea22b0e1859864efd6000b8abfa1229475dcea9

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