Skip to main content

pytest_pyramid

Latest PyPI version Documentation Status Wheel Status Supported Python Versions License

Package status

Tests Coverage 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.3

  • add additiona_fixtures to factories.pyramid_app

0.3.2

  • add pyramid_config ini option

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

Metadata

Release files for pytest-pyramid 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-pyramid 0.3.3
File Size Uploaded
pytest_pyramid-0.3.3.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-pyramid 0.3.3
File Interpreter ABI Platform
pytest_pyramid-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / pytest_pyramid-0.3.3.tar.gz

Download URL pytest_pyramid-0.3.3.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a7785c61698ff857cb0a90ba8dcc724aae1954812d4a72c700a9a06877e697f7
BLAKE2b-256 checksum
How to use checksums
737c35bdf7d137c4e63801d82d688e4f755fe21c299bdc244f4a18af80d766c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

Release files / pytest_pyramid-0.3.3-py3-none-any.whl

Download URL pytest_pyramid-0.3.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1b1a4f35605180505ff0310cf9f4e67403a4b1cea51189099d33c4fc64389b9
BLAKE2b-256 checksum
How to use checksums
1fb488aa7e40984a8cc53c854f47477810e58c472e739c85107fd6d46d8870c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

Release history Release notifications | RSS feed

2.0.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page