Skip to main content

zope.pytest

Introduction

This package contains a set of helper functions to test Zope/Grok using pytest. It currently lacks special support for doctesting.

Core functions

zope.pytest.setup.create_app

  • this function creates a WSGI app object which utilizes a temporary db.

zope.pytest.setup.configure

  • this function parses ZCML files and initializes the component registry

Simple example:

import my.project
from zope.pytest import create_app, configure
from my.project import Root

def pytest_funcarg__app(request):
    return create_app(request, Root())

def pytest_funcarg__config(request):
    return configure(request, my.project, 'ftesting.zcml')

def test_hello(app, config):
    assert 1 == 1

Documentation

Complete documentation can be found on

http://packages.python.org/zope.pytest

CHANGES

0.1 (2011-03-05)

Initial implementation.

Download

Metadata

Release files for zope.pytest 0.1

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

Source distribution (sdist)

Source distribution for zope.pytest 0.1
File Size Uploaded Provenance Actions
zope.pytest-0.1.tar.gz 32.7 kB Without provenance Details for zope.pytest-0.1.tar.gz

Release files / zope.pytest-0.1.tar.gz

Download URL zope.pytest-0.1.tar.gz
Size 32.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fd95ce5d457ef1905f60d071c1fb0f97c1d5818c50b2545b4549ff15e81fc8a5
BLAKE2b-256 checksum
How to use checksums
cf0437aa10e331b08f8a3db20baffa35464b25c4f43aabe9343d1e6eebb986da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for zope.pytest 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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