debian/0000755000000000000000000000000011757433555007205 5ustar debian/python-fudge-doc.doc-base0000644000000000000000000000051011724750152013741 0ustar Document: python-fudge-doc Title: Python fudge documentation Author: Kumar McMillan Abstract: Fudge is a Python module for using fake objects (mocks and stubs) to test real ones. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-fudge-doc/html/index.html Files: /usr/share/doc/python-fudge-doc/html/*.html debian/compat0000644000000000000000000000000211724750152010370 0ustar 8 debian/source/0000755000000000000000000000000011757433337010503 5ustar debian/source/format0000644000000000000000000000001411724750152011700 0ustar 3.0 (quilt) debian/control0000644000000000000000000001007111757432660010603 0ustar Source: python-fudge Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Jan Dittberner Build-Depends: debhelper (>= 8~), python (>= 2.6.5~), python3 (>= 3.1.3-2~), python-setuptools, python3-setuptools, python-nose, python-sphinx (>= 1.0.7+dfsg-1~) Standards-Version: 3.9.3 Homepage: http://farmdev.com/projects/fudge/ Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-fudge/trunk Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-fudge/trunk/ Package: python-fudge Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-pkg-resources Recommends: python-fudge-doc (=${binary:Version}) Description: 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. Package: python-fudge-doc Architecture: all Section: doc Depends: ${misc:Depends}, ${sphinxdoc:Depends}, libjs-sphinxdoc Description: Python module for using fake objects for tests, Python3 package 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 documentation of python-fudge. Package: python3-fudge Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, python3-pkg-resources Recommends: python-fudge-doc (=${binary:Version}) Description: Python module for using fake objects for tests, documentation package 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 Python3 version of the package. debian/watch0000644000000000000000000000011611724750152010221 0ustar version=3 http://pypi.python.org/packages/source/f/fudge/ fudge-(.*)\.tar\.gz debian/changelog0000644000000000000000000000134311757432757011063 0ustar 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 -- Jan Dittberner Thu, 24 May 2012 15:21:51 +0200 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) -- Jan Dittberner Fri, 04 May 2012 21:14:07 +0200 python-fudge (1.0.3-1) unstable; urgency=low * Initial release. (Closes: #643566) -- Jan Dittberner Sun, 04 Mar 2012 21:13:38 +0100 debian/copyright0000644000000000000000000000257611724750152011137 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174 Upstream-Name: fudge Upstream-Contact: Kumar McMillan http://farmdev.com/projects/fudge/ Source: http://pypi.python.org/pypi/fudge Files: * Copyright: Copyright (c) 2009 Kumar McMillan License: MIT Files: debian/* Copyright: Copyright (c) 2011 Jan Dittberner License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.debian/rules0000755000000000000000000000156711751025164010261 0ustar #!/usr/bin/make -f override_dh_auto_clean: rm -rf build fudge.egg-info find -name '._*' -delete dh_auto_clean override_dh_auto_install: sphinx-build -b html -a -c docs docs \ $(CURDIR)/debian/python-fudge-doc/usr/share/doc/python-fudge-doc/html python setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-fudge python3 setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python3-fudge override_dh_python2: dh_python2 -ppython-fudge override_dh_python3: dh_python3 -ppython3-fudge override_dh_sphinxdoc: dh_sphinxdoc -ppython-fudge-doc override_dh_compress: dh_compress -i -X.rst -X.js -X.html -X.txt override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) set -e -x; \ PYTHONPATH=$(CURDIR)/build/lib.* python setup.py nosetests endif %: dh $@ --with python2,python3,sphinxdoc --buildsystem=python_distutils