python-fudge_1.1.0-1_all.deb


Advertisement

Description

python-fudge - Python 2 module for using fake objects for tests

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: python-fudge
Package version: 1.1.0
Package release: 1
Package architecture: all
Package type: deb
Installed size: 172 B
Download size: 28.15 KB
Official Mirror: archive.ubuntu.com
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. This is the Python 2 version of the package.

Alternatives

    Download

    Source package: python-fudge

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install python-fudge deb package:
      # sudo apt-get install python-fudge

    Files

    • /usr/lib/python2.7/dist-packages/fudge/__init__.py
    • /usr/lib/python2.7/dist-packages/fudge/exc.py
    • /usr/lib/python2.7/dist-packages/fudge/inspector.py
    • /usr/lib/python2.7/dist-packages/fudge/patcher.py
    • /usr/lib/python2.7/dist-packages/fudge/util.py
    • /usr/lib/python2.7/dist-packages/fudge-1.1.0.egg-info/PKG-INFO
    • /usr/lib/python2.7/dist-packages/fudge-1.1.0.egg-info/dependency_links.txt
    • /usr/lib/python2.7/dist-packages/fudge-1.1.0.egg-info/top_level.txt
    • /usr/lib/python2.7/dist-packages/fudge/tests/__init__.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/_py3_suite.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/test_fudge.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/test_import_all.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/test_inspector.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/test_inspector_import_all.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/test_patcher.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/test_registry.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/support/__init__.py
    • /usr/lib/python2.7/dist-packages/fudge/tests/support/_for_patch.py
    • /usr/share/doc/python-fudge/changelog.Debian.gz
    • /usr/share/doc/python-fudge/copyright

    Changelog

    2015-12-30 - Jan Dittberner <jandd@debian.org> python-fudge (1.1.0-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Jan Dittberner ] * Use PyPI redirector for watch file * fix package description mismatch in debian/control * Apply patch by Juan Picca to have fixed timestamps to make the build reproducible (Closes: #788501) * Bump Standards-Version to 3.9.6 (no changes) * Run wrap-and-sort * Switch to dh-python/pybuild * Update copyright years * Build documentation in dh_auto_build step * New upstream version * Remove deletion of MacOS X files from dh_override_auto_clean, because upstream removed them * Re-Enable Python 3 tests

    2012-05-24 - Jan Dittberner <jandd@debian.org> python-fudge (1.0.3-3) unstable; urgency=low * Fix "missing dependency on python3!!" by using correct variable in debian/control (Closes: #674405) * fix Vcs-Svn and Vcs-Browser URLs in debian/control

    2012-05-04 - Jan Dittberner <jandd@debian.org> python-fudge (1.0.3-2) unstable; urgency=low * Fix "FTBFS if built twice in a row: aborting due to unexpected upstream changes" by removing fudge.egg-info in debian/rules override_auto_clean target (Closes: #671421)

    2012-03-04 - Jan Dittberner <jandd@debian.org> python-fudge (1.0.3-1) unstable; urgency=low * Initial release. (Closes: #643566)

    Advertisement
    Advertisement