Skip to main content

A collection of helpers for testing.

Project description

A library to provide useful tools for testing python code.

Helper classes

MonkeyPatch

Provides an easy way to monkeypatch an object

To patch an object:
from test_toolbox import MonkeyPatch
patch = MonkeyPatch(obj, ‘attr’, value)

To restore an object simply call thre restore method on the patched object:

Running tests

python -m unittest

Project details


Release history Release notifications

Download files

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

Files for test-toolbox, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size test_toolbox-0.1.2-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size test-toolbox-0.1.2.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page