Fudge
Fudge
http://farmdev.com/projects/fudge/
Python module for using fake objects to test real ones
Fudge is a Python module for using fake objects (mocks and stubs) to test real ones.
In readable Python code, you declare what methods are available on your fake and how they should be called. Then you inject that into your application and start testing. This declarative approach means you don’t have to record and playback actions and you don’t have to inspect your fakes after running code. If the fake object was used incorrectly then you’ll see an informative exception message with a traceback that points to the culprit.
Fudge was inspired by Mocha which is a simpler version of jMock. But unlike Mocha, Fudge does not automatically hijack real objects; you explicitly patch them in your test. And unlike jMock, Fudge is only as strict about expectations as you want it to be. If the type of arguments sent to the fake method aren’t important then you don’t have to declare an expectation for them.
Download
http://ftp.debian.org/debian/pool/main/p/python-fudge/python-fudge_1.0.3.orig.tar.gz
Categories
Licensing
License
Verified by
Verified on
Notes
License
Verified by
Debian: Jan Dittberner <jandd@debian.org>
Verified on
24 May 2012
Notes
License: mit
Leaders and contributors
Contact(s) | Role |
---|---|
Kumar McMillan http://farmdev.com/projects/fudge/ | contact |
Resources and communication
Audience | Resource type | URI |
---|---|---|
Python (Ref) | https://pypi.org/project/fudge | |
Debian (Ref) (R) | https://tracker.debian.org/pkg/python-fudge | |
Ruby (Ref) | https://rubygems.org/gems/fudge |
Software prerequisites
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.
The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.