Name : python2-fudge
| |
Version : 1.1.0
| Vendor : obs://build_opensuse_org/devel:languages:python
|
Release : 18.4
| Date : 2018-07-20 14:51:35
|
Group : Development/Languages/Python
| Source RPM : python-fudge-1.1.0-18.4.src.rpm
|
Size : 1.08 MB
| |
Packager : (none)
| |
Summary : Replace real objects with fakes (mocks, stubs, etc) while testing
|
Description :
Complete documentation is available at http://farmdev.com/projects/fudge/
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.
Here is a quick preview of how you can test code that sends email without actually sending email::
AATTfudge.patch(\'smtplib.SMTP\') def test_mailer(FakeSMTP): (FakeSMTP.expects_call() .expects(\'connect\') .expects(\'sendmail\').with_arg_count(3)) send_mail()
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/python/SLE_15/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
python-fudge
python2-fudge
Requires :