fudge 0.9.5
pip install fudge==0.9.5
Newer version available (1.1.1)
Released:
Replace real objects with fakes (mocks, stubs, etc) while testing.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: The MIT License
- Author: Kumar McMillan
Classifiers
- Intended Audience
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
Complete documentation is available at http://farmdev.com/projects/fudge/
This module is designed for two specific situations:
Replace an object
Temporarily return a canned value for a method or allow a method to be called without affect.
Ensure an object is used correctly
Declare expectations about what methods should be called and what arguments should be sent.
Here is a quick preview of how you can test code that sends email without actually sending email:
>>> import fudge >>> SMTP = fudge.Fake('SMTP') >>> SMTP = SMTP.expects('__init__') >>> SMTP = SMTP.expects('connect') >>> SMTP = SMTP.expects('sendmail').with_arg_count(3) >>> SMTP = SMTP.expects('close')
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: The MIT License
- Author: Kumar McMillan
Classifiers
- Intended Audience
- Natural Language
- Operating System
- Programming Language
- Topic
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
File details
Details for the file fudge-0.9.5.tar.gz
.
File metadata
- Download URL: fudge-0.9.5.tar.gz
- Upload date:
- Size: 82.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44e5de286c586ac9e08ca7f15e6ebe94ba2f0e55f6c2d1e24856ca53b8ef1d1 |
|
MD5 | 9d658b33a36be05d4be796243d99d374 |
|
BLAKE2b-256 | 2ca092e99589b34d7f940be3c9c09ee2353ee800c6e52e82e8ca266622055a10 |