Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

zope pytest integration

Project Description



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

Core functions


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


  • 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


Complete documentation can be found on


0.1 (2011-03-05)

Initial implementation.


Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zope.pytest-0.1.tar.gz (32.7 kB) Copy SHA256 Checksum SHA256 Source Mar 5, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting