zope pytest integration
Project description
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
CHANGES
0.1 (2011-03-05)
Initial implementation.
Download
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zope.pytest-0.1.tar.gz
(32.7 kB
view details)
File details
Details for the file zope.pytest-0.1.tar.gz
.
File metadata
- Download URL: zope.pytest-0.1.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd95ce5d457ef1905f60d071c1fb0f97c1d5818c50b2545b4549ff15e81fc8a5 |
|
MD5 | 724985c604b5fad096abeabc1871cb86 |
|
BLAKE2b-256 | cf0437aa10e331b08f8a3db20baffa35464b25c4f43aabe9343d1e6eebb986da |