Mock Documentation. Release dev6. Michael Foord

Size: px
Start display at page:

Download "Mock Documentation. Release dev6. Michael Foord"

Transcription

1 Mock Documentation Release dev6 Michael Foord Jan 09, 2018

2

3 Contents 1 TOC CHANGES Introduction 35 3 Installing 37 4 Bug Reports 39 5 Python Changes Library Older Versions of Python 43 7 Maintainer Notes 45 Python Module Index 47 i

4 ii

5 Version dev6 Date Jan 09, 2018 Homepage Mock Homepage Download Mock on PyPI Documentation Python Docs License BSD License Support Mailing list Issue tracker GitHub Issues Last sync cb6aab1248c4aec4dd578bea a6fb55d Contents 1

6 2 Contents

7 CHAPTER 1 TOC 1.1 CHANGES Github -> GitHub Update version in header to I am investigating a migration to Python 3, and to facilitate this we are using the -3 flag as decribed here: When using this flag I encountered some issues inside of mock itself Remove dead code from init.py Fix #338: depend on a fixed version of funcsigs More 3.2 support dropping cleanup Update sync point Add Mock.assert_called() Issue Format the error message output of mock s assert_has_calls method Issue #22138: Fix mock.patch behavior when patching descriptors. Restore original values after patching Issue #24857: Comparing call_args to a long sequence now correctly returns a boolean result instead of raising an exception Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes Add version info in the docs Update six to a version with raises_from Fix #328 - handle unicode repr on Python 2.x 3

8 Drop support for Python 3.2 Fix typo in docs/index.txt Fix README.rst checking Be clearer about Python version compat Issue #295: use a setup_requires dependency Improve grouping of imports in tests Use six to detect python2/3 in main module Use six to detect python2/3 in test modules Update sync point Issue #21750: Further fixup to be styled like other mock APIs Typo fix in mock.patch Revert Issue #21750: mock_open.read_data can now be read from each instance, as it Add 2.6 back to classifiers Record sync point Issue #21750: mock_open.read_data can now be read from each instance, as it could in Python 3.3 Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely Folk should test 2.6 locally too Closes #279: setuptools.version is too new Support python Update sync point and sync docs Issue #23661: unittest.mock side_effects can now be exceptions again Abort installation if the installer is using setuptools< Closes #269: setup_requires pbr Chapter 1. TOC

9 Closes #257: version the dependency on six Rename README.txt to README.rst Make reproducing travis behaviour somewhat easier Cleanup version number handling Overhaul docs Update docs Remove stale MANIFEST.in, ignore pbr outputs Convert to a package, use pbr, update metadata Bump versions Officially drop 2.6 support Issue #23310: Fix MagicMock s initializer to work with methods. Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim Issue #23568: Add rdivmod support to MagicMock() objects Issue #23581: Add matmul support to MagicMock Issue #23326: Removed ne implementations. Since fixing default ne implementation in issue #21408 they are redundant Issue #22823: Use set literals instead of creating a set from a list. Fixed an output of sets in examples Closes #21270 : We now override tuple methods in mock.call objects Suppress a couple more DeprecationWarnings in the test suite Closes #21256: Printout of keyword args in deterministic order in mock calls Removes unused varargs and varkwargs from assert_not_called() Closes Issue 21262: New method assert_not_called for Mock Closes Issue 21238: New keyword argument unsafe to Mock Closes issue unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times Closes Issue Closes issue You no longer need to explicitly pass create=true when patching builtin names Issue Setting an iterable side_effect on a mock created by create_autospec now works Issue unittest.mock.magicmock now supports division Issue #20189: Four additional builtin types (PyTypeObject, PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes Issue #19594: Use specific asserts in unittest tests Remove shadowed test 1.1. CHANGES 5

10 Adjust comment Issue #19013: add a main to unittest.test.testmock to ease CLI invocation Issue #19013: add unittest.main() epilogs to unittest.mock s own test modules Process DEFAULT values in mock side_effect that returns iterator Closes issue Add readline and readlines support to unittest.mock.mock_open Issue #17047: remove doubled words added in 3.3 as reported by Serhiy Storchaka and Matthew Barnett Issue #17015: When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name Closes issue Improve failure message of Mock.assert_called_once_with Close #14857: fix regression in references to PEP 3135 implicit class closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue Remove incorrect comment Closes issue unittest.mock.create_autospec now supports keyword only arguments unittest.mock: removed another bit of Python 2 only code Adding unittest.mock documentation unittest.mock: remove another piece of Python 2 specific code Remove more Python 2 code from unittest.mock (obsolete function attributes) Support subclassing unittest.mock._patch and fix various obscure bugs around patcher spec arguments unittest.mock.magicmock objects are now unorderable by default Removed XXX from unittest.mock docstring and switch to a nicer try... except... finally Remove more Python 2 compatibility cruft from unittest.mock PEP 417: Adding unittest.mock Ignore patch rejects too Add NEWS Add PyPy to travis Issue #20189: Four additional builtin types Just hard-depend on unittest2 Fix typo in test name Some basic release process notes Ignore more editor files Add testrepository configuration We never need sudo. Containers FTW Fixup ignores Iterating on.travis.yml Setup Travis-CI 6 Chapter 1. TOC

11 Attribution update License update Doc update Typo fix Remove XXXX from comment Restore Python 2.4 warning in the changelog Proper compatibility with functools.wraps Fix for wraps - wrapped was added in 3.2 not 3.3 Remove mention of Python 2.4 from PyPI page Typo fixes Add wrapped to functions decorated with patch variants Final doc updates for 1.0 release for 1.0 Updates for the 1.0 release Minor doc tweak Date update README update Updated version number Doc update Adding patch.stopall method reset_mock now resets magic method mocks MagicMock.reset_mock on an autospec created mock no longer crashes CHANGELOG update Minor doc changes for new alpha release Add example of exceptions on attribute access to docs Support keyword only arguments in Python 3 Exceptions in iterable side_effect will be raised Committed failing test for pickling Changelog update Docstring update Doc fixes Move test and update code comment create_autospec now works with attributes that can t be fetched Minor update for mock_open docs PropertyMock attributes and return values are standard MagicMocks 1.1. CHANGES 7

12 Doc typo fix Update patch example in docs Updated example to patch documentation Add example to patch documentation Doc / docstring improvement for patch Bump version number Changes for 1.0.0a1 release A mock created by patch with a spec as the list argument will be callable if call is in the spec Minor cleanups Some test fixes to always clean up patches Update CHANGELOG Fix various bugs around spec arguments to patchers CHANGELOG update Make using create=true with spec=true in patchers an error Propagate exception info in _patch. exit Set file_spec on first use Remove obsolete comments Minor doc and docstring updates More documentation updates Whitespace in doc changes More documentation updates Documentation updates Change comparison methods on MagicMock to return NotImplemented Further removal of mocksignature references typo Propogate exceptions in _patch. exit () Adding PropertyMock Make class assignable Removing mocksignature documentation Adding mock_open helper mocksignature and tests removed Restore expectedfailure around test Merge Removed failing test for spec inheritance - should not be on by default Version number change in comment 8 Chapter 1. TOC

13 Failing test for create_autospec and unbound methods Failing test and changelog entry for spec inheritance Version update for 0.9 branch Version update for maintenance branch Merge Minor doc wording change merge Update release date in docs merge Update release date in docs Added tag for changeset e074b39c Branch for 0.8 series development Complete changes to getting started doc Document change to MagicMock. iter Improvement to handing of MagicMock. iter return value Further update to getting started Further update to getting started Minor doc update plus whitespace removal doctest fix Further update to getting started Getting started updates Minor doc updates Index doc updates Markup correction Markup correction Markup correction Markup correction Extended examples for mocksignature Extended examples for side_effect and calling mocks Oops 2 Oops Minor doc update Add attaching mock doc and examples Docs and example for patch.test_prefix 1.1. CHANGES 9

14 Bump version number and minor doc updates Minor doc update Adding examples for call objects as tuples Minor doc update Minor doc update Minor doc update Minor doc update Reformat Mock attribute docs Add links to 0.8 changelog Minor doc updates Minor doc updates Example for patch.dict with dictionary like object Doc and docstring updates for patch Switch more references to ~Mock Switch to using ~Mock instead of Mock in documentation references Add documentation for Mock. dir Re-ordering of changelog Minor optimisation Fix ANY comparisons with call objects to helpers documentation Doc update Moc docs update Doc and docstring update Doc update Minor doc update Improved repr for sentinel objects Example update Example update Doctest global setup change README update Setting date of 0.8rc2 release Extended test for ANY Extended test for ANY Fix ANY equality with some types in assert_called_with calls 10 Chapter 1. TOC

15 Adding a new link to the index Adding a note about resetting side_effect on a mock Docs update Docs update Change Mock theme Renamed parameter Doc update Doc update Doc update Doc update Update tox.ini to use new sphinx environment for every build Removing one expectedfailure and adding one Note and expectedfailure test for autospec and unbound methods Minor doc update Minor doc update Minor doc update Merge Update copyright years Minor doc update Docs update Docs update, including global doctest setup Docs update Docs update Remvove unused configure parameter from create_autospec More doc updates Docs update return_value (etc) arguments to patch work with autospec (again) Doc update Remove configure keyword argument from create_autospec and accept arbitrary keyword arguments Minor changelog update Doc and setup.py update 1.1. CHANGES 11

16 Setting date of rc1 release Additional example of mocks and mutable arguments Adding Python implementation trove classifiers Minor performance improvements Minor tweak CHANGELOG update Removing a lot of calls to setattr in Mock construction Index page docs update CHANGELOG update Added a docstring for configure mock Remove MagicProxy cache optimisation Micro optimisation Use weakrefs to avoid circular references Further optimisation for MagicMock instantiation Move a variable out of a loop Remove unused code for setting MagicProxy on instances Remove micro optimisation Further performance improvements instantiating MagicMock Performance improvement instantiating MagicMock, Magic methods of mocks are no longer hard coded to MagicMock Extending test for create_autospec and non-callable instances create_autospec uses call method for the signature of mocks that are the return value of classes Documentation update and failing test for create_autospec README update Minor test change Extend test for patch lazy importing Date of beta 4 release Implementation of attach_mock Setting a mock as a return value of itself no longer modifies repr of the mock Fix setting a mock as its own return value, expose new issue of setting a return value of a child mock to the top level mock Rename Sentinel and SentinelObject classes to make it clear they are private Attribute deletion specified and tested Calls to mocks attached as magic methods are recorded in mock calls Test name refactor patch imports lazily Wing project file change 12 Chapter 1. TOC

17 Link correction CHANGELOG update Added docstrings changelog update Mocks set as attributes and return values are attached correctly. mock_calls of the parent Implementation of mock_add_spec Initial implementation of mock_add_spec Test improvement Extend some mock_calls tests for named mocks Fix all doctests Doctest fixes for repr changes Doctest fixes for repr changes Fixes for mock_calls on intermediate mocks in a call chain Fix test for mock repr more Fix test for mock repr Mock uses new name for repr Changelog update Fix tests for call reprs Fixing call repr repr for call objects Test improvements from pyflakes and removal of callargs Start unification of callargs and _Call mock_calls works on functions created by mocksignature Changelog update Changelog update Update date in changelog Tests for assert_any_call Reducing markup in docstrings Initial implementation of assert_any_call Move assert_has_calls to Mock Merge Correct duplicate link in README Merge Update dev release README ignore temporary script Calls are recorded in method_calls and 1.1. CHANGES 13

18 Release data for 0.8 beta 2 Setting to an iterable will cause calls to the mock to return the next value from the iterable Properly fix call_args, call_args_list issue Fix regression in call_args and call_args_list behaviour Minor changelog correction Further updates to outstanding issues in the changelog Update the outstanding issues in the changelog Minor update to changelog Adding full list of changes since 0.7 to changelog Adding an example for mocker Merge Update the mock dev version link Version number bump for beta 1 release Minor changelog update Addition of pretty-printed str to _CallList patch.test_prefix controls the methods affected by patchers as class decorator patch.multiple works with string subclasses Tuples as well as lists allowed for specifying spec Extend _CallList tests Mock version bump Extended test for callargs repr Mock method_calls and mock_calls are now CallLists Extended tests and improved docstring for callargs Extending tests for callargs _CallList.assert_has_calls handles duplicate call arguments correctly Initial implementation of _CallList.assert_has_calls Initial (partial) implementation of CallList for call_args_list callargs now always have 3 members (name, args, kwargs) Add docstring to Mock._get_child_mock Implement ne for callargs and call Fix callargs call comparisons Rename _new_name and _new_parent attributes reset_mock includes mock_calls Example update Addition of subclassing example to the documentation Test for overriding _get_child_mock in subclasses 14 Chapter 1. TOC

19 Tests for call_list Addition of call_list method to call for chained call assertions Extending test for mock_calls and call Test rename Extending callargs test Extending call for mock_calls Initial implementation of mock_calls Start extending a test for mock_calls Improved failure messages for the mock assert methods Fixed bug with argument passing when patch.multiple is creating mocks Fix testpatch so it can be run standalone Support for java exceptions on Jython Making public the instance argument to create_autospec CHANGELOG update Minor text change Modifications to docs for 0.8 alpha 2 release Placeholders for missing docstrings Mock is now the baseclass for MagicMock again Testing patching failures with patch.multiple Initial attempt to fix unpatching with patch.multiple failures Test for problem with patch.multiple and adding js to docs in package Fix bug where a failure to create a nested patch could leave patches undone Extend tests for patch.multiple Fix error message for stopping a patcher without starting it. Test create argument to patch.multiple Test cleanup True div operator no longer available on mocks in Python 3 patch.object no longer has patch.multiple functionality. patch.multiple can work on objects as well as target specified by string Test update Update on outstanding tests needed for patch.multiple Fixing patch.multiple for decorating classes Fix tests for pypy patch.multiple passes in created mocks to decorated functions as keyword arguments Fix test for issue I m not going to fix Failing test for copying magic methods from builtins Fix for Python CHANGES 15

20 Comment updates Initial implementation of patch.multiple Initial test for patch.multiple Testing new_callable with class decorating Update index page Test fix for Python 3 spec inheritance with patch and new_callable only happens for mocks CHANGELOG update Using new_callable with new or autospec is an error Test new_callable with spec new_callable argument to patch / patch.object Remove unittest marker, which caused traceback truncation create_autospec creates mocks without a spec for slot descriptors Comment change Test improvement Test autospec name in mock repr CHANGELOG update Removed inherit argument from create_autospec CHANGELOG update CHANGELOG update CHANGELOG update autospec of a property doesn t use a spec Test for autospec and properties Temporary commit for shift code downstairs spec / spec_set inheritance works correctly with patch and creating non-callable mocks for instances Test extension Changelog update create_autospec can create non-callable mocks Changelog markup fix Changelog update Test extension Test extension Wing project file change patching a class with non callable instances creates a non-callable return value for the mock Changelog update 16 Chapter 1. TOC

21 Fix bugs around methods / functions using self as an arbitrary argument Return values of mocks patching classes are also MagicMocks by default Fix autospec for functions / methods with a self argument that isn t the first argument Fix for class bug in Python 3 Minor changes Test fixes Test additions, currently failing Test refactor and cleanup of issues reported by pyflakes Addition of NonCallableMock and NonCallableMagicMock New default inherit behaviour for create_autospec Merge Example modification Merge New example Merge Minor text update Merge Extending the mocking properties example Minor change in doc Change some rest styles on examples doc page Minor changelog reformat Minor changelog mod for release for release Test extension Minor text reformat Extending import example Further fixes for MagicMock equality New example in getting started doc Adding a new example to the docs Minor changelog addition Adding FILTER_DIR to configure private attribute filtering in dir dir(mock) is less verbose. autospec with attributes of None creates non-specced mocks for those attributes Preparation for Tests for keyword arguments to patchers Extend test to cover configure_mock 1.1. CHANGES 17

22 Test for passing keyword arguments to Mock / MagicMock constructor Minor optimisation to configure_mock MagicMock uses super instead of explicit upcall Add **kwargs support to patchers and Mocks Changelog update Comment fix autospec can now take arbitrary objects as well as True/False Docstring typo fix Improve test for equality / inequality Remove incorrect comment Fix tests for pypy and remove extraneous list call in Mock. dir dir implementation Test refactor Test name changes Fix MagicMock equality tests Adding custom dir implementation Updated changelog patch creates a MagicMock instead of a Mock by default Updated changelog Updated changelog Compile regex Moving function definition Functions created by _set_signature have the correct name Make create_autospec public. Change the way autospec creates function signatures Extend test for patchers and autospec argument Test that combining autospec with new arguments to patch are invalid Extending tests for Mock Testing patch autospec argument Testing signature mocking with _spec_signature Testing signature mocking with _spec_signature Testing signature mocking with _spec_signature Test fix and minor cleanup Remove use of apply from tests Test name cleanup patch autospec now creates a mocksignature for types and callables Minor cleanup 18 Chapter 1. TOC

23 Minor cleanup Integrating _spec_signature with patch through the autospec keyword Document limitations of auto-speccing in the changelog Test fix Test cleanup Comment Mocking with _spec_signature is now lazy. Two failing tests still to fix (those tests now out of date) Avoid setting mock instance attributes unecessarily Various minor fixes Mocks used by _spec_signature are *always* created with a spec, instead of sometimes using standard mock attributes or allowing mocksignature to create them for us Recursive function references work with _spec_signature _spec_signature can mock a function Comment Fix _spec_signature with a spec of None Fix for _spec_signature and builtin types Extend tests for _spec_signature id cache shared by _spec_signature for return values of mocked classes Test for spec inheritance with _spec_signature Extend tests for _spec_signature Extend tests for _spec_signature Minor cleanup Extend tests for _spec_signature _spec_signature can now cope with objects that reference themselves Extend tests for _spec_signature Extend tests for _spec_signature Extend tests for _spec_signature Extend tests for _spec_signature Minor cleanup _spec_signature works with classmethod and staticmethod for instances and types Fix for classmethods and _spec_signature Adding spec_set flag to _spec_signature Extend tests for _spec_signature Extend tests for _spec_signature Extend tests for _spec_signature Extend tests for _spec_signature 1.1. CHANGES 19

24 Correct an error message Testing _spec_signature and builtin subclasses _spec_signature is now recursive Fix failing test for _spec_signature Merge Allowing tuples and list subclasses for _spec_signature Issue 88: allow list subclass as a valid spec Initial implementation of _spec_signature Test cleanup Test name cleanup Test name cleanup mocksignature reset_mock also resets return values Adding mock API to mocksignature functions Comment out failing test Renamed private attributes to avoid clash. Test for mock_calls Protocol methods on MagicMock are now MagicMocks, created lazily on first lookup Testing call Testing call First changes towards alpha 1 Merge Typo fixes Merge Extended example for docs Merge Adding example to documentation Fix examples.txt for recent versions of unittest2 Merge Changelog for previous fixes Use isolated binaries for tox config Merge Including templates in docs Removing executable bit on docs Converting getting-started to UNIX line endings Update configure_mock recipe in docs Adding link to pycon video to docs Additional examples in docs 20 Chapter 1. TOC

25 Remove unneeded line in docs a typo, a formatting fix and an example added Add fudge examples to mock comparison Addition of note about patching django settings Extending MagicMock as dictionary example Doc tweak Doc tweak Doc tweak Doc tweak Doc tweak Updating references in example Adding example of mocking dictionary access with MagicMock Further doctest improvements Correct some doctests (to fail correctly). Adding example of nesting patches Change trove status classifier to production Create 0.7 branch README changes for release Doc changes for release Doc changes for release Version number bump for release Remove unused _has_local_attr 1.1. CHANGES 21

26 Addition of note on terminology Typo correction Adding comparison document Changelog update Docs update Docs update Rename a function to make it private. Docs update Theme change Sphinx theme update Sphinx config change Docs update Docs update docs update docs update docs update docs update Documentation update 22 Chapter 1. TOC

27 Minor changes Minor doc updates Sphinx markup correction in examples.txt Changing more examples to doctests Minor doc updates Changing dates in copyright notices Update mailing list link in the docs Changes for rc1 Fix recursion problem with mock.reset_mock when a mock is its own return value Default implementation of wraps for Python 2.4 copies more function attributes Bunch version number Change a few dates to 2011 Changelog updates Fix use of mock.patch with proxy objects Ignore compiled jython files Use standard unittest for Python 3.2 tests Update to changelog Adding jython, python 3.2 and pypy to tox configuration Adding a link to the docs Adding link to documentation Changelog changes Changelog change Changelog changes Minor changelog tinkering Docs and changelog updates Doc improvement CHANGELOG addition Docstring correction Ignore latex output directory for building pdf documentation Ignore build and dist directories Adding a link to the docs Documentation updates for 0.7.0b4 release setup.py tinkerage patch.dict as a class decorator Removed duplicated definition of class_types Slightly improved patch.start / stop test Adding start and stop methods to patchers 1.1. CHANGES 23

28 Cleanup testpatch Adding a test for subclassing Mock with property Enhanced mocksignature test Changelog tweak Extending mocksignature test for patch.object Fix mocksignature for patch.object and instance methods Fix spec and spec_set for old style classes Whitespace changes Docstring and documentation updates Documentation and sphinx config updates spec_set defaults to None rather than False Blank line additions Docstring updates Test for isinstance and spec_set Update version number in sphinx conf repr of a class with a spec_set is different to a class with a spec Additional tests for spec_set spec_set can be an object Setting a non-existent attribute on mock created with a spec will only raise an AttributeError if spec_set keyword argument is used MagicMock attributes and return value are now MagicMocks Ignoring files update tags Addition of assert_called_once_with method to Mock Minor test tweak, changelog update Spec class name included in mock repr Line length changes in test assert_called_with now works with python -OO Slightly more elegant way of detecting invalid attribute setting with spec Attempting to *set* an attribute on a class with a spec will raise an if the spec doesn t have that attribute Fix copy test for Python 2.7 Attempting to set an unsupported magic method now raises an AttributeError Change version number to beta 4 Change copying test to work on Python 3 (no sys.maxint) Allow mock objects to be copied Change mock wing IDE project file to Wing 4 format Corrected whitespace issue in README Changelog formatting tweaks Update PDF link in 0.7.0b3 docs 24 Chapter 1. TOC

29 Changes for 0.7.0b3 release Changes for 0.7.0b3 release Updates for beta 3 Minor docs update Simplified way MagicMock default methods are created Updating docs for mocksignature mocksignature works with classes and callable objects Adding build_sphinx to setup.py Changing version number prior to a beta 3 release docs update docs update Addition of sizeof to supported magic methods. Mocks can pass isinstance tests when a spec object is used Added mock id to repr Changed default numeric value of MagicMock to 1 repr to include name of mock Modifying Wing ignored files updating tests to use unittest2 on Python 2.7 Updates to config file Update to wing project file and unittest config file unittest.cfg update Adding a unittest config file and ignoring other files Enable with statement tests for Python 2.5 Remove unnecessary sphinx docs build for 2.7 (only need to test the docs build on one version of Python) Update tox.ini for Python 3.1 (requires tox 0.7) Adding commands to tox.ini Change to tox configuration now that unittest is out Project file update Adding sphinx testing to tox.ini for Python 2.6 and 2.7 Modifying tox.ini for Windows compatibility Minor tox.ini change Adding tox config file and moving with tests to not see failures under Python 2.4 Fixing MANIFEST.in for Windows Adding support for the setuptools setup.py test command CHANGELOG update Adding getformat and setformat magic method support Adding more supported magic methods Code formatting issue 1.1. CHANGES 25

30 Fix issue with _mock_ as varargs or varkwargs and mocksignature Adding another test for mock magic methods Whitespace change Adding an additional mocksignature test Adding an additional mocksignature test Minor change to the way instance methods are checked in mocksignature Adding text version of docs to distribution Remove unused URL from setup.py Minor CHANGELOG changes Docs improvement Documentation improvement Adding pickling magic methods to the supported-but-not-default set Adding pickling magic methods to the supported-but-not-default set Improved interaction of spec and magic methods Setting a magic method on a mock with a spec can only be done if the spec includes that method The created class for each Mock now inherits Mock. doc Improved failure message for Mock.assert_called_with when the mock has not yet been called all leftover whitespace cleaned Docs improvements CHANGELOG preparation for final release Additional docstrings Version number and doc changes Link correction in docs README update Removing the TODO page from the documentation and adding 0.7b2 changelog Rename withavailable to with_available Enable additional tests under Python 2.5 Cleaning up issues reported by pyflakes and adding a descriptor test that I won t yet fix Docs improvements Docs improvements Docs improvements Docs improvements Minor doc tweak Doc update for patch.dict() patch.dict(... ) works with dictionaries specified by name (string) patch.dict(... ) now works as context manager 26 Chapter 1. TOC

31 Fix a bug in patch.dict(... ) and checkin two failing tests for new functionality Adding Python 3 trove classifiers Docs improvements Docs improvements Docs improvements Docs improvements Docs improvements Docs improvements Docs improvements mocksignature will now create a mock for you if you don t pass one in Adding docs and tests to distribution Docs changes More doc changes Updating index page for 0.7 release CHANGELOG and TODO update CHANGELOG update Adding some docstrings Test tinkering mocksignature now adds the mock to the created function More tinkering More tinkering Minor tinkering Adding a test for the mocksignature argument to patch Fixing test for all and removing unused imports reported by pyflakes. Adding a test for the mocksignature argument to patch.oject Version number change and test for all Update copyright notices in code Adding MagicMock to mock. all Minor test improvement Reorganise magic methods slightly Comment change Adding descriptor methods to non default magic methods Reorganise magic methods slightly Minor test improvement for MagicMock More default values for magic methods in MagicMock More default values for magic methods in MagicMock 1.1. CHANGES 27

32 Improved (again) handling of default return values for MagicMock Improved way of supporting default return values in mock magic methods Sensible defaults for *some* of the magic methods in MagicMock Skipping the test for obsolete magic methods in Python 3 Add support of obsolete magic methods Support for clear argument to patch.dict Test patch.dict with list of tuples instead of dictionary for values Support patch.dict for dictionary like objects Support patch.dict for dictionary like objects Preserve name of wrapped functions / methods Replace *more* assertequals with assertequal Initial implementation of patch.dict. Concerns that this overwrites the signature of wrapped functions / methods. Should we be using functools.wraps? Should patch.dict support the new mocksignature argument? Ignoring build directories created by setuptools regression test added Making the import of unittest2 from tests.support Getting rid of deprecation warning in Python 2.7 and removing some cruft from test modules Changing test support code made the tests slightly less evil (I couldn t sleep because of that :D ) ignored MANIFEST Typo correction changelog update double patch bug fixed setup.py fixes removed unused import Minor doc change Minor docs update Minor docs update around testing Adding a couple more articles on mock to the references section Minor comment update Minor update to unittest test discovery in docs docs updated Removing unused imports / variables reported by pyflakes and adding minor code comments Minor CHANGELOG change Minor README update added a note about deprecating patch_object 28 Chapter 1. TOC

33 updated the docs side_effect now works with BaseException exceptions made tests 2.4 compatible (partly) moved patch_object to patch.object, deprecated previous api Removing the types import and using the internally defined ClassType Changing more assertequals to assertequal Version number change Minor change to class decorator code Text formatting in documentation py3 compatibility for class decorator patch class decorator documented test update changelog update class decorator implemented (as destructive decorator) Fix text formatting in patch.txt Fix a couple of examples in documentation Fix spec=true examples Minor changelog addition. Change all use of assertequals to assertequal Updated README Updated README Updated README Updated README Changelog additions Test for MagicMock as a context manager Changelog additions Code comment Testing MagicMock Ignoring Python 3 pycache files Support for mocking method signatures in Python 3 Added support for bool as a magic method under Python 3 First steps towards Python 3 compatibility Use unittest2 TestCase features and remove custom testcase removed leftover files changelog updated documentation for lenient comparisons explicit test for call_args 1.1. CHANGES 29

34 simple call_args comparison fixed doctests documetation updated method_calls now returns callargs objects switched to unittest2 moved to unittest2 and marked testmagicmethodwrapping as expected failure Addition of MagicMock. Needs testing Ignoring distribution building artefacts Updating setup.py Doc correction Fix for fetching magic methods from the instance Adding another note Typo correction Addition of new test file Refactoring tests Extending tests for magic method wrapping Bypass wrapping when setting a magic method to a Mock Add note to extendmock that all functionality has been merged into Mock Minor note in docs Minor note in docs enter and exit now handled Wrapping in Mock. setattr so that magic methods fetched from the instance still get self passed in as the first argument More noting of what hasn t been done yet Tests and docs updates Date in docstring updated Updating changelog Improving tests Merging extendmock into mock docstring enhancement Better implementation of MagicMock. MagicMock instances no longer have *all* magic methods Minor code tinkerage Minor test correction Test completion for mocksignature Correct horrible error accidentally left in previous commit (this message genuine as previous commit with spurious message was a slip of the fingers... ) Correct horrible error accidentally left in previous commit 30 Chapter 1. TOC

35 Correct horrible error accidentally left in previous commit Problem with the way default arguments arehandled in mocksignature Test improvements for extendmock Improvements to extendmock and tests Adding extendmock doc fix Minor doc change Doc change Switching to using test discovery to run tests Minor doc change Fixing setup.py Doc changes and removing dependency on setuptools in setup.py Preparation for release Documentation updates Documentation updates Whitespace correction Doc changes Correct patching / unpatching of static methods Fix syntax error - mock still not working Implementation for safe_get_attribute but not wired in yet Temporarily failing test.. Migrating tests to new layout renaming test modules to be compatible with discovery Adding call_count to the docs date correction release Removing magics support for 0.5 release added empty latex directory for PDF doc builds test changes for running under Wing test changes for running under Wing minor doc fix more copyright year fixing minor test fix updating documentation and copyright year in sources Changing the way side_effect is called Changing the way side_effect is called 1.1. CHANGES 31

36 Adding wraps keyword argument Adding wraps keyword argument Making patch a context manager Renamed.reset() to.reset_mock() Docs update Docs update Addition of create argument to patch and inheritance of spec for patched classes Doc update Docs update Docs update Doc changes Docs update Docs update Changes related to moving of tests Changed UnitTests to tests Doc update Updated docs Change docs to Sphinx Spec changes Merged spec / methods keyword arguments and added magics keyword argument Spec changes 32 Chapter 1. TOC

37 Typo fix in docs Minor test change Updated docs Update Update Added EOL fixing Initial checkin Initial directory structure 1.1. CHANGES 33

38 34 Chapter 1. TOC

39 CHAPTER 2 Introduction mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards. However, if you are writing code that runs on multiple versions of Python the mock package is better, as you get the newest features from the latest release of Python available for all Pythons. The mock package contains a rolling backport of the standard library mock code compatible with Python 2.6 and up, and 3.3 and up. Python 3.2 is supported by mock and below - with pip no longer supporting 3.2, we cannot test against that version anymore. Please see the standard library documentation for usage details. 35

40 36 Chapter 2. Introduction

41 CHAPTER 3 Installing The current version is dev6. Mock is stable and widely used. mock on PyPI You can checkout the latest development version from GitHub repository with the following command: git clone You can install mock with pip: pip install -U mock Alternatively you can download the mock distribution from PyPI and after unpacking run: python setup.py install 37

42 38 Chapter 3. Installing

43 CHAPTER 4 Bug Reports Mock uses unittest2 for its own Issues with the backport process, such as compatibility with a particular Python, should be reported to the bug tracker. Feature requests and issues with Mock functionality should be reported to the Python bug tracker. 39

44 40 Chapter 4. Bug Reports

45 CHAPTER 5 Python Changes Python NEWS entries from cpython: 5.1 Library Issue #26323: Add Mock.assert_called() and Mock.assert_called_once() methods to unittest.mock. Patch written by Amit Saha. Issue #22138: Fix mock.patch behavior when patching descriptors. Restore original values after patching. Patch contributed by Sean McCully. Issue #24857: Comparing call_args to a long sequence now correctly returns a boolean result instead of raising an exception. Patch by A Kaptur. Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes. Initial patch by Aaron Hill. Issue #21750: mock_open.read_data can now be read from each instance, as it could in Python 3.3. Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from Nicola Palumbo and Laurent De Buyst. Issue #23661: unittest.mock side_effects can now be exceptions again. This was a regression vs Python 3.4. Patch from Ignacio Rossi Issue #23310: Fix MagicMock s initializer to work with methods, just like configure_mock(). Patch by Kasia Jachim. Issue #23568: Add rdivmod support to MagicMock() objects. Patch by Håkan Lövdahl. Issue #23581: Add matmul support to MagicMock. Patch by Håkan Lövdahl. Issue #23326: Removed ne implementations. Since fixing default ne implementation in issue #21408 they are redundant. * NOT BACKPORTED * Issue #21270: We now override tuple methods in mock.call objects so that they can be used as normal call attributes. 41

46 Issue #21256: Printout of keyword args should be in deterministic order in a mock function call. This will help to write better doctests. Issue #21262: New method assert_not_called for Mock. It raises AssertionError if the mock has been called. Issue #21238: New keyword argument unsafe to Mock. It raises AttributeError incase of an attribute startswith assert or assret. Issue #21239: patch.stopall() didn t work deterministically when the same name was patched more than once. Issue #21222: Passing name keyword argument to mock.create_autospec now works. Issue #17826: setting an iterable side_effect on a mock function created by create_autospec now works. Patch by Kushal Das. Issue #17826: setting an iterable side_effect on a mock function created by create_autospec now works. Patch by Kushal Das. Issue #20968: unittest.mock.magicmock now supports division. Patch by Johannes Baiter. Issue #20189: unittest.mock now no longer assumes that any object for which it could get an inspect.signature is a callable written in Python. Fix courtesy of Michael Foord. Issue #17467: add readline and readlines support to mock_open in unittest.mock. Issue #17015: When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name. Issue #15323: improve failure message of Mock.assert_called_once_with Issue #14857: fix regression in references to PEP 3135 implicit class closure variable (Reopens issue #12370) Issue #14295: Add unittest.mock 42 Chapter 5. Python Changes

47 CHAPTER 6 Older Versions of Python Version is the last version compatible with Python <

48 44 Chapter 6. Older Versions of Python

49 CHAPTER 7 Maintainer Notes Checkout from git (see Installing) and submit pull requests. Committers can just push as desired: since all semantic development takes place in cpython, the backport process is as lightweight as we can make it. mock is CI tested using Travis-CI on Python versions 2.6, 2.7, 3.3, 3.4, 3.5, nightly Python 3 builds, pypy, pypy3. Jython support is desired, if someone could contribute a patch to.travis.yml to support it that would be excellent. NB: please use semver. Bump the major component on API breaks, minor on all non-bugfix changes, patch on bugfix only changes. 1. tag -s, push tags origin master 2. setup.py sdist bdist_wheel upload -s isinstance checks in cpython to type need to check ClassTypes. Code calling obj.isidentifier needs to change to _isidentifier(obj). 1. Patch your git am with my patch. 2. Install the applypatch-transform hook from tools/ to your.git hooks dir. 3. Configure a pre-applypatch hook to test at least all the cpython versions we support on each patch that is applied. I use containers, and a sample script is in tools/pre-applypatch. 4. Pull down the cpython git mirror: 5. Export the new revisions since the Last sync at the top of this document: revs=${lastsync} rm migrate-export git log --pretty="format:%h " $revs.. -- Lib/unittest/mock.py \ Lib/unittest/test/testmock/ > migrate-revs tac migrate-revs > migrate-sorted-revs for rev in $(< migrate-sorted-revs); do git format-patch -1 $rev -k --stdout >> migrate-export; done echo NEW SYNC POINT: $(git rev-parse HEAD) 45

50 6. Import into mock: git am -k --reject $path-to-cpython/migrate-export This will transform the patches automatically. Currently it will error on every NEWS change as I haven t gotten around to making those patches automatic. Fixup any errors that occur. When the patch is ready, do a git add -u to update the index and then git am --continue to move onto the next patch. If the patch is inappropriate e.g. the patch removing ne which would break older pythons, then either do git reset --hard; git am --skip to discard any partially applied changes and skip over it, or, if it has a NEWS entry thats worth preserving, edit it down to just that, with a note such as we have for the ne patch, and continue on from there. The goal is that every patch work at all times. 7. After the import is complete, update this document with the new sync point. 8. Push to a personal branch and propose a PR to the main repo. This will make Travis-CI test it. If it works, push to the main repo. 46 Chapter 7. Maintainer Notes

51 Python Module Index m mock, 1 47

52 48 Python Module Index

53 Index B bug reports, 37 G git, 37 I installing, 35 introduction, 1 M maintainer notes, 43 mock (module), 1 O older versions, 42 P pip, 37 python changes, 39 R repository, 37 49

Mock Documentation. Release Michael Foord

Mock Documentation. Release Michael Foord Mock Documentation Release 2.0.0 Michael Foord April 06, 2016 Contents 1 TOC 3 1.1 CHANGES...................................... 3 2 Introduction 39 3 Installing 41 4 Bug Reports 43 5 Python Changes 45

More information

Mock Documentation. Release Michael Foord

Mock Documentation. Release Michael Foord Mock Documentation Release 0.7.2 Michael Foord June 06, 2011 CONTENTS 1 API Documentation 3 1.1 The Mock Class................................... 3 1.2 Patch Decorators...................................

More information

Python Project Documentation

Python Project Documentation Python Project Documentation Release 1.0 Tim Diels Jan 10, 2018 Contents 1 Simple project structure 3 1.1 Code repository usage.......................................... 3 1.2 Versioning................................................

More information

lazy-object-proxy Release 1.3.1

lazy-object-proxy Release 1.3.1 lazy-object-proxy Release 1.3.1 Jun 22, 2017 Contents 1 Overview 1 1.1 Installation................................................ 2 1.2 Documentation.............................................. 2

More information

pytest-benchmark Release 2.5.0

pytest-benchmark Release 2.5.0 pytest-benchmark Release 2.5.0 September 13, 2015 Contents 1 Overview 3 1.1 pytest-benchmark............................................ 3 2 Installation 7 3 Usage 9 4 Reference 11 4.1 pytest_benchmark............................................

More information

Archan. Release 2.0.1

Archan. Release 2.0.1 Archan Release 2.0.1 Jul 30, 2018 Contents 1 Archan 1 1.1 Features.................................................. 1 1.2 Installation................................................ 1 1.3 Documentation..............................................

More information

pydocstyle Documentation

pydocstyle Documentation pydocstyle Documentation Release 1.0.0 Amir Rachum Oct 14, 2018 Contents 1 Quick Start 3 1.1 Usage................................................... 3 1.2 Error Codes................................................

More information

DNS Zone Test Documentation

DNS Zone Test Documentation DNS Zone Test Documentation Release 1.1.3 Maarten Diemel Dec 02, 2017 Contents 1 DNS Zone Test 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

g-pypi Documentation Release 0.3 Domen Kožar

g-pypi Documentation Release 0.3 Domen Kožar g-pypi Documentation Release 0.3 Domen Kožar January 20, 2014 Contents i ii Author Domen Kožar Source code Github.com source browser Bug tracker Github.com issues Generated January 20,

More information

sainsmart Documentation

sainsmart Documentation sainsmart Documentation Release 0.3.1 Victor Yap Jun 21, 2017 Contents 1 sainsmart 3 1.1 Install................................................... 3 1.2 Usage...................................................

More information

Python Project Example Documentation

Python Project Example Documentation Python Project Example Documentation Release 0.1.0 Neil Stoddard Mar 22, 2017 Contents 1 Neilvana Example 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

Specter Documentation

Specter Documentation Specter Documentation Release 0.6.1 John Vrbanac Apr 09, 2017 Contents 1 Documentation 2 1.1 Using Specter............................................... 2 1.2 Writing Specter Tests..........................................

More information

chatterbot-weather Documentation

chatterbot-weather Documentation chatterbot-weather Documentation Release 0.1.1 Gunther Cox Nov 23, 2018 Contents 1 chatterbot-weather 3 1.1 Installation................................................ 3 1.2 Example.................................................

More information

Python simple arp table reader Documentation

Python simple arp table reader Documentation Python simple arp table reader Documentation Release 0.0.1 David Francos Nov 17, 2017 Contents 1 Python simple arp table reader 3 1.1 Features.................................................. 3 1.2 Usage...................................................

More information

doubles Documentation

doubles Documentation doubles Documentation Release 1.1.0 Jimmy Cuadra August 23, 2015 Contents 1 Installation 3 2 Integration with test frameworks 5 2.1 Pytest................................................... 5 2.2 Nose...................................................

More information

flake8 Documentation Release Tarek Ziade

flake8 Documentation Release Tarek Ziade flake8 Documentation Release 2.5.5 Tarek Ziade June 14, 2016 Contents 1 QuickStart 3 2 Frequently Asked Questions 5 2.1 Why does flake8 pin the version of pep8?................................ 5 2.2 Is

More information

Roman Numeral Converter Documentation

Roman Numeral Converter Documentation Roman Numeral Converter Documentation Release 0.1.0 Adrian Cruz October 07, 2014 Contents 1 Roman Numeral Converter 3 1.1 Features.................................................. 3 2 Installation 5

More information

Aldryn Installer Documentation

Aldryn Installer Documentation Aldryn Installer Documentation Release 0.2.0 Iacopo Spalletti February 06, 2014 Contents 1 django CMS Installer 3 1.1 Features.................................................. 3 1.2 Installation................................................

More information

Python 3000 and You. Guido van Rossum PyCon March 14, 2008

Python 3000 and You. Guido van Rossum PyCon March 14, 2008 Python 3000 and You Guido van Rossum PyCon March 14, 2008 Why Py3k Open source needs to move or die Matz (creator of Ruby) To fix early, sticky design mistakes e.g. classic classes, int division, print

More information

Mantis STIX Importer Documentation

Mantis STIX Importer Documentation Mantis STIX Importer Documentation Release 0.2.0 Siemens February 27, 2014 Contents 1 Mantis STIX Importer 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

cssselect Documentation

cssselect Documentation cssselect Documentation Release 1.0.3 Simon Sapin Dec 27, 2017 Contents 1 Quickstart 3 2 User API 5 2.1 Exceptions................................................ 5 3 Supported selectors 7 4 Customizing

More information

Dragon Mapper Documentation

Dragon Mapper Documentation Dragon Mapper Documentation Release 0.2.6 Thomas Roten March 21, 2017 Contents 1 Support 3 2 Documentation Contents 5 2.1 Dragon Mapper.............................................. 5 2.2 Installation................................................

More information

Python State Machine Documentation

Python State Machine Documentation Python State Machine Documentation Release 0.6.2 Fernando Macedo Aug 25, 2017 Contents 1 Python State Machine 3 1.1 Getting started.............................................. 3 2 Installation 7 2.1

More information

Python wrapper for Viscosity.app Documentation

Python wrapper for Viscosity.app Documentation Python wrapper for Viscosity.app Documentation Release Paul Kremer March 08, 2014 Contents 1 Python wrapper for Viscosity.app 3 1.1 Features.................................................. 3 2 Installation

More information

xmljson Documentation

xmljson Documentation xmljson Documentation Release 0.1.9 S Anand Aug 01, 2017 Contents 1 About 3 2 Convert data to XML 5 3 Convert XML to data 7 4 Conventions 9 5 Options 11 6 Installation 13 7 Roadmap 15 8 More information

More information

Python State Machine Documentation

Python State Machine Documentation Python State Machine Documentation Release 0.7.1 Fernando Macedo Jan 17, 2019 Contents 1 Python State Machine 3 1.1 Getting started.............................................. 3 2 Installation 9 2.1

More information

Continuous Integration INRIA

Continuous Integration INRIA Vincent Rouvreau - https://sed.saclay.inria.fr February 28, 2017 Contents 1 Preamble In this exercice, you will learn how to install your Python program with packaging tools, test it, measure the tests

More information

OTX to MISP. Release 1.4.2

OTX to MISP. Release 1.4.2 OTX to MISP Release 1.4.2 May 11, 2018 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation.............................................. 1 1.3 Alienvault

More information

cwmon-mysql Release 0.5.0

cwmon-mysql Release 0.5.0 cwmon-mysql Release 0.5.0 October 18, 2016 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation.............................................. 1 1.3

More information

pysharedutils Documentation

pysharedutils Documentation pysharedutils Documentation Release 0.5.0 Joel James August 07, 2017 Contents 1 pysharedutils 1 2 Indices and tables 13 i ii CHAPTER 1 pysharedutils pysharedutils is a convenient utility module which

More information

django-idioticon Documentation

django-idioticon Documentation django-idioticon Documentation Release 0.0.1 openpolis June 10, 2014 Contents 1 django-idioticon 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

django-crucrudile Documentation

django-crucrudile Documentation django-crucrudile Documentation Release 0.9.1 Hugo Geoffroy (pstch) July 27, 2014 Contents 1 Installation 1 1.1 From Python package index....................................... 1 1.2 From source...............................................

More information

TPS Documentation. Release Thomas Roten

TPS Documentation. Release Thomas Roten TPS Documentation Release 0.1.0 Thomas Roten Sep 27, 2017 Contents 1 TPS: TargetProcess in Python! 3 2 Installation 5 3 Contributing 7 3.1 Types of Contributions..........................................

More information

e24paymentpipe Documentation

e24paymentpipe Documentation e24paymentpipe Documentation Release 1.2.0 Burhan Khalid Oct 30, 2017 Contents 1 e24paymentpipe 3 1.1 Features.................................................. 3 1.2 Todo...................................................

More information

Gearthonic Documentation

Gearthonic Documentation Gearthonic Documentation Release 0.2.0 Timo Steidle August 11, 2016 Contents 1 Quickstart 3 2 Contents: 5 2.1 Usage................................................... 5 2.2 API....................................................

More information

Redis Timeseries Documentation

Redis Timeseries Documentation Redis Timeseries Documentation Release 0.1.8 Ryan Anguiano Jul 26, 2017 Contents 1 Redis Timeseries 3 1.1 Install................................................... 3 1.2 Usage...................................................

More information

nacelle Documentation

nacelle Documentation nacelle Documentation Release 0.4.1 Patrick Carey August 16, 2014 Contents 1 Standing on the shoulders of giants 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2

More information

I2C LCD Documentation

I2C LCD Documentation I2C LCD Documentation Release 0.1.0 Peter Landoll Sep 04, 2017 Contents 1 I2C LCD 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

Django-CSP Documentation

Django-CSP Documentation Django-CSP Documentation Release 3.0 James Socol, Mozilla September 06, 2016 Contents 1 Installing django-csp 3 2 Configuring django-csp 5 2.1 Policy Settings..............................................

More information

pyldavis Documentation

pyldavis Documentation pyldavis Documentation Release 2.1.2 Ben Mabey Feb 06, 2018 Contents 1 pyldavis 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

google-search Documentation

google-search Documentation google-search Documentation Release 1.0.0 Anthony Hseb May 08, 2017 Contents 1 google-search 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

contribution-guide.org Release

contribution-guide.org Release contribution-guide.org Release August 06, 2018 Contents 1 About 1 1.1 Sources.................................................. 1 2 Submitting bugs 3 2.1 Due diligence...............................................

More information

yardstick Documentation

yardstick Documentation yardstick Documentation Release 0.1.0 Kenny Freeman December 30, 2015 Contents 1 yardstick 3 1.1 What is yardstick?............................................ 3 1.2 Features..................................................

More information

doconv Documentation Release Jacob Mourelos

doconv Documentation Release Jacob Mourelos doconv Documentation Release 0.1.6 Jacob Mourelos October 17, 2016 Contents 1 Introduction 3 2 Features 5 2.1 Available Format Conversions...................................... 5 3 Installation 7 3.1

More information

Release Nicholas A. Del Grosso

Release Nicholas A. Del Grosso wavefront r eaderdocumentation Release 0.1.0 Nicholas A. Del Grosso Apr 12, 2017 Contents 1 wavefront_reader 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

FPLLL. Contributing. Martin R. Albrecht 2017/07/06

FPLLL. Contributing. Martin R. Albrecht 2017/07/06 FPLLL Contributing Martin R. Albrecht 2017/07/06 Outline Communication Setup Reporting Bugs Topic Branches and Pull Requests How to Get your Pull Request Accepted Documentation Overview All contributions

More information

PyCRC Documentation. Release 1.0

PyCRC Documentation. Release 1.0 PyCRC Documentation Release 1.0 Cristian Năvălici May 12, 2018 Contents 1 PyCRC 3 1.1 Features.................................................. 3 2 Installation 5 3 Usage 7 4 Contributing 9 4.1 Types

More information

Index. Cache, 20 Callables, 185 call () method, 290 chain() function, 41 Classes attributes descriptors, 145 properties, 143

Index. Cache, 20 Callables, 185 call () method, 290 chain() function, 41 Classes attributes descriptors, 145 properties, 143 Index A add_column() method, 284 add() method, 44 addtypeequalityfunc() method, 253 Affero General Public License (AGPL), 260 American Standard Code for Information Interchange (ASCII), 218 219 and operator,

More information

Python AutoTask Web Services Documentation

Python AutoTask Web Services Documentation Python AutoTask Web Services Documentation Release 0.5.1 Matt Parr May 15, 2018 Contents 1 Python AutoTask Web Services 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

dj-libcloud Documentation

dj-libcloud Documentation dj-libcloud Documentation Release 0.2.0 Daniel Greenfeld December 19, 2016 Contents 1 dj-libcloud 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Aircrack-ng python bindings Documentation

Aircrack-ng python bindings Documentation Aircrack-ng python bindings Documentation Release 0.1.1 David Francos Cuartero January 20, 2016 Contents 1 Aircrack-ng python bindings 3 1.1 Features..................................................

More information

Simple libtorrent streaming module Documentation

Simple libtorrent streaming module Documentation Simple libtorrent streaming module Documentation Release 0.1.0 David Francos August 31, 2015 Contents 1 Simple libtorrent streaming module 3 1.1 Dependences...............................................

More information

Python data pipelines similar to R Documentation

Python data pipelines similar to R Documentation Python data pipelines similar to R Documentation Release 0.1.0 Jan Schulz October 23, 2016 Contents 1 Python data pipelines 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

Friday, 11 April 14. Advanced methods for creating decorators Graham Dumpleton PyCon US - April 2014

Friday, 11 April 14. Advanced methods for creating decorators Graham Dumpleton PyCon US - April 2014 Advanced methods for creating decorators Graham Dumpleton PyCon US - April 2014 Intermission Rant about the history of this talk and why this topic matters. Python decorator syntax @function_wrapper def

More information

yaml4rst Documentation

yaml4rst Documentation yaml4rst Documentation Release 0.1.5 Robin Schneider Mar 16, 2017 Contents 1 yaml4rst introduction 3 1.1 Usage................................................... 3 1.2 Features..................................................

More information

wheel Documentation Release Daniel Holth

wheel Documentation Release Daniel Holth wheel Documentation Release 0.32.2 Daniel Holth Oct 20, 2018 Contents 1 Quickstart 3 2 Installation 5 2.1 Python and OS Compatibility...................................... 5 3 User Guide 7 3.1 Building

More information

Django Wordpress API Documentation

Django Wordpress API Documentation Django Wordpress API Documentation Release 0.1.0 Swapps Jun 28, 2017 Contents 1 Django Wordpress API 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Google Domain Shared Contacts Client Documentation

Google Domain Shared Contacts Client Documentation Google Domain Shared Contacts Client Documentation Release 0.1.0 Robert Joyal Mar 31, 2018 Contents 1 Google Domain Shared Contacts Client 3 1.1 Features..................................................

More information

zope.location Documentation

zope.location Documentation zope.location Documentation Release 4.0 Zope Foundation Contributors January 28, 2015 Contents 1 Using zope.location 3 1.1 Location................................................ 3 1.2 inside()................................................

More information

Pulp Python Support Documentation

Pulp Python Support Documentation Pulp Python Support Documentation Release 1.0.1 Pulp Project October 20, 2015 Contents 1 Release Notes 3 1.1 1.0 Release Notes............................................ 3 2 Administrator Documentation

More information

API Wrapper Documentation

API Wrapper Documentation API Wrapper Documentation Release 0.1.7 Ardy Dedase February 09, 2017 Contents 1 API Wrapper 3 1.1 Overview................................................. 3 1.2 Installation................................................

More information

Poetaster. Release 0.1.1

Poetaster. Release 0.1.1 Poetaster Release 0.1.1 September 21, 2016 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation.............................................. 1 1.3

More information

funcsigs Documentation

funcsigs Documentation funcsigs Documentation Release 0.4 Aaron Iles December 20, 2013 Contents i ii CHAPTER 1 The Funcsigs Package funcsigs is a backport of the PEP 362 function signature features from Python 3.3 s inspect

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................

More information

CPSC 491. Lecture 19 & 20: Source Code Version Control. VCS = Version Control Software SCM = Source Code Management

CPSC 491. Lecture 19 & 20: Source Code Version Control. VCS = Version Control Software SCM = Source Code Management CPSC 491 Lecture 19 & 20: Source Code Version Control VCS = Version Control Software SCM = Source Code Management Exercise: Source Code (Version) Control 1. Pretend like you don t have a version control

More information

CS 520: VCS and Git. Intermediate Topics Ben Kushigian

CS 520: VCS and Git. Intermediate Topics Ben Kushigian CS 520: VCS and Git Intermediate Topics Ben Kushigian https://people.cs.umass.edu/~rjust/courses/2017fall/cs520/2017_09_19.zip Our Goal Our Goal (Overture) Overview the basics of Git w/ an eye towards

More information

git-pr Release dev2+ng5b0396a

git-pr Release dev2+ng5b0396a git-pr Release 0.2.1.dev2+ng5b0396a Mar 20, 2017 Contents 1 Table Of Contents 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

Python Unit Testing and CI Workflow. Tim Scott, Python Meetup 11/07/17

Python Unit Testing and CI Workflow. Tim Scott, Python Meetup 11/07/17 Python Unit Testing and CI Workflow Tim Scott, Python Meetup 11/07/17 A Little About Me Started as a CoOp Engineer (2007-2008) and Design Engineer at Adtran (2010-2014) Currently work at Abaco Systems

More information

Python Finite State Machine. Release 0.1.5

Python Finite State Machine. Release 0.1.5 Python Finite State Machine Release 0.1.5 Sep 15, 2017 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation..............................................

More information

git commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b

git commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b Git Cheat Sheet Git Basics Rewriting Git History git init Create empty Git repo in specified directory. Run with no arguments to initialize the current directory as a git repository. git commit

More information

Poulpe Documentation. Release Edouard Klein

Poulpe Documentation. Release Edouard Klein Poulpe Documentation Release 0.0.5 Edouard Klein Jul 18, 2017 Contents 1 Poulpe 1 1.1 Features.................................................. 1 2 Usage 3 3 Installation 5 4 Contributing 7 4.1 Types

More information

Release Manu Phatak

Release Manu Phatak cache r equestsdocumentation Release 4.0.0 Manu Phatak December 26, 2015 Contents 1 Contents: 1 1.1 cache_requests.............................................. 1 1.2 Installation................................................

More information

PTN-105 Python programming. Course Outline. Prerequisite: basic Linux/UNIX and programming skills. Delivery Method: Instructor-led training (ILT)

PTN-105 Python programming. Course Outline. Prerequisite: basic Linux/UNIX and programming skills. Delivery Method: Instructor-led training (ILT) PTN-105 Python programming Prerequisite: basic Linux/UNIX and programming skills. Delivery Method: Instructor-led training (ILT) Course Length: 5 days Course Outline Module 1. Introduction Why python?

More information

PyZillow Documentation

PyZillow Documentation PyZillow Documentation Release 0.5.5 Hannes Hapke Jul 10, 2017 Contents 1 Installation 3 2 Usage of the GetDeepSearchResults API 5 3 Usage of the GetUpdatedPropertyDetails API 7 4 Contact Information

More information

Frontier Documentation

Frontier Documentation Frontier Documentation Release 0.1.3-dev Sam Nicholls August 14, 2014 Contents 1 Frontier 3 1.1 Requirements............................................... 3 1.2 Installation................................................

More information

withenv Documentation

withenv Documentation withenv Documentation Release 0.7.0 Eric Larson Aug 02, 2017 Contents 1 withenv 3 2 Installation 5 3 Usage 7 3.1 YAML Format.............................................. 7 3.2 Command Substitutions.........................................

More information

django-dynamic-db-router Documentation

django-dynamic-db-router Documentation django-dynamic-db-router Documentation Release 0.1.1 Erik Swanson August 24, 2016 Contents 1 Table of Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

dicompyler-core Documentation

dicompyler-core Documentation dicompyler-core Documentation Release 0.5.3 Aditya Panchal Nov 08, 2017 Contents 1 dicompyler-core 3 1.1 Other information............................................ 3 1.2 Dependencies...............................................

More information

syslog-ng Apache Kafka destination

syslog-ng Apache Kafka destination syslog-ng Apache Kafka destination Release 0.1.11 Julien Anguenot Aug 23, 2017 Contents 1 syslog-ng-mod-python Apache Kafka destination 3 2 librdkafka installation 5 2.1 DEB packages via apt..........................................

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 0.6.stable Juda Kaleta October 04, 2013 CONTENTS i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on

More information

Composer and Drupal. CIDUG Meeting December 13, 2018 John Rearick

Composer and Drupal. CIDUG Meeting December 13, 2018 John Rearick Composer and Drupal CIDUG Meeting December 13, 2018 John Rearick * Similar to other dependency managers such as: yum, apt, brew, macports, npm, pip, etc. * Helps manage dependency hell. * Lots of dependencies

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 0.7.stable Juda Kaleta December 21, 2013 Contents i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on

More information

eventbrite-sdk-python Documentation

eventbrite-sdk-python Documentation eventbrite-sdk-python Documentation Release 3.3.4 Eventbrite December 18, 2016 Contents 1 eventbrite-sdk-python 3 1.1 Installation from PyPI.......................................... 3 1.2 Usage...................................................

More information

Python Schema Generator Documentation

Python Schema Generator Documentation Python Schema Generator Documentation Release 1.0.0 Peter Demin June 26, 2016 Contents 1 Mutant - Python code generator 3 1.1 Project Status............................................... 3 1.2 Design..................................................

More information

Python Mock Tutorial Documentation

Python Mock Tutorial Documentation Python Mock Tutorial Documentation Release 0.1 Javier Collado Nov 14, 2017 Contents 1 Introduction 3 2 Mock 5 2.1 What is a mock object?.......................................... 5 2.2 What makes mock

More information

Working in Teams CS 520 Theory and Practice of Software Engineering Fall 2018

Working in Teams CS 520 Theory and Practice of Software Engineering Fall 2018 Working in Teams CS 520 Theory and Practice of Software Engineering Fall 2018 Version Control September 18, 2018 Thursday (September 20) First in-class exercise On using git (today is a prelude with useful

More information

Simple Binary Search Tree Documentation

Simple Binary Search Tree Documentation Simple Binary Search Tree Documentation Release 0.4.1 Adrian Cruz October 23, 2014 Contents 1 Simple Binary Search Tree 3 1.1 Features.................................................. 3 2 Installation

More information

Version Control Systems

Version Control Systems Nothing to see here. Everything is under control! September 16, 2015 Change tracking File moving Teamwork Undo! Undo! UNDO!!! What strategies do you use for tracking changes to files? Change tracking File

More information

django-reinhardt Documentation

django-reinhardt Documentation django-reinhardt Documentation Release 0.1.0 Hyuntak Joo December 02, 2016 Contents 1 django-reinhardt 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

Python AMT Tools Documentation

Python AMT Tools Documentation Python AMT Tools Documentation Release 0.8.0 Sean Dague Jan 14, 2018 Contents 1 Python AMT Tools 3 1.1 Background................................................ 3 1.2 Hardware that includes AMT......................................

More information

django-telegram-bot Documentation

django-telegram-bot Documentation django-telegram-bot Documentation Release 0.6.0 Juan Madurga December 21, 2016 Contents 1 django-telegram-bot 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Release Ralph Offinger

Release Ralph Offinger nagios c heck p aloaltodocumentation Release 0.3.2 Ralph Offinger May 30, 2017 Contents 1 nagios_check_paloalto: a Nagios/Icinga Plugin 3 1.1 Documentation..............................................

More information

pvl Documentation Release William Trevor Olson

pvl Documentation Release William Trevor Olson pvl Documentation Release 0.2.0 William Trevor Olson May 29, 2017 Contents 1 pvl 1 1.1 Installation................................................ 1 1.2 Basic Usage...............................................

More information

tld Documentation Release 0.9 Artur Barseghyan

tld Documentation Release 0.9 Artur Barseghyan tld Documentation Release 0.9 Artur Barseghyan Jun 13, 2018 Contents 1 Prerequisites 3 2 Documentation 5 3 Installation 7 4 Usage examples 9 5 Update the list of TLD names

More information

django-cas Documentation

django-cas Documentation django-cas Documentation Release 2.3.6 Parth Kolekar January 17, 2016 Contents 1 django-cas 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Python 3000 and You. Guido van Rossum EuroPython July 7, 2008

Python 3000 and You. Guido van Rossum EuroPython July 7, 2008 Python 3000 and You Guido van Rossum EuroPython July 7, 2008 Why Py3k Open source needs to move or die Matz (creator of Ruby) To fix early, sticky design mistakes e.g. classic classes, int division, print

More information

MyAnimeList Scraper. Release 0.3.0

MyAnimeList Scraper. Release 0.3.0 MyAnimeList Scraper Release 0.3.0 Mar 14, 2018 Contents 1 Overview 1 1.1 Installation & Usage........................................... 1 1.2 Development...............................................

More information

Connexion Sqlalchemy Utils Documentation

Connexion Sqlalchemy Utils Documentation Connexion Sqlalchemy Utils Documentation Release 0.1.4 Michael Housh Apr 17, 2017 Contents 1 Connexion Sqlalchemy Utils 3 1.1 Features.................................................. 3 1.2 Running example

More information

Release Fulfil.IO Inc.

Release Fulfil.IO Inc. api a idocumentation Release 0.1.0 Fulfil.IO Inc. July 29, 2016 Contents 1 api_ai 3 1.1 Features.................................................. 3 1.2 Installation................................................

More information

AnyDo API Python Documentation

AnyDo API Python Documentation AnyDo API Python Documentation Release 0.0.2 Aliaksandr Buhayeu Apr 25, 2017 Contents 1 anydo_api unofficial AnyDo API client for Python (v0.0.2 aplha) 3 1.1 Supported Features............................................

More information