The NetBSD Project

CVS log for pkgsrc/devel/py-mock/PLIST

[BACK] Up to [] / pkgsrc / devel / py-mock

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 5 04:55:10 2019 UTC (5 months, 2 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, HEAD
Changes since 1.2: +1 -33 lines
Diff to previous 1.2 (colored)

py-mock: updated to 3.0.4

- Include the license, readme and changelog in the source distribution.

- Fixed patching of dictionaries, when specifying the target with a
  unicode on Python 2.

- Add missing funcsigs dependency on Python 2.

- Fix packaging issue where six was missed as a dependency.

- Issue 35226: Recursively check arguments when testing for equality of objects and add note that tracking of
  parameters used to create ancestors of mocks in mock_calls is not

- Issue 31177: Fix bug that prevented using :meth:reset_mock
  <unittest.mock.Mock.reset_mock> on mock instances with deleted attributes

- Issue 26704: Added test demonstrating double-patching of an instance
  method.  Patch by Anthony Sottile.

- Issue 35500: Write expected and actual call parameters on separate lines
  in :meth:unittest.mock.Mock.assert_called_with assertion errors.
  Contributed by Susan Su.

- Issue 35330: When a :class:Mock instance was used to wrap an object, if
  side_effect is used in one of the mocks of it methods, don't call the
  original implementation and return the result of using the side effect the
  same way that it is done with return_value.

- Issue 30541: Add new function to seal a mock and prevent the
  automatically creation of child mocks. Patch by Mario Corchero.

- Issue 35022: :class:unittest.mock.MagicMock now supports the
  __fspath__ method (from :class:os.PathLike).

- Issue 33516: :class:unittest.mock.MagicMock now supports the
  __round__ magic method.

- Issue 35512: :func:unittest.mock.patch.dict used as a decorator with
  string target resolves the target during function call instead of during
  decorator construction. Patch by Karthikeyan Singaravelan.

- Issue 36366: Calling stop() on an unstarted or stopped
  :func:unittest.mock.patch object will now return None instead of
  raising :exc:RuntimeError, making the method idempotent. Patch
  byKarthikeyan Singaravelan.

- Issue 35357: Internal attributes' names of unittest.mock._Call and
  unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with
  _mock_ in order to prevent clashes with widely used object attributes.
  Fixed minor typo in test function name.

- Issue 20239: Allow repeated assignment deletion of
  :class:unittest.mock.Mock attributes. Patch by Pablo Galindo.

- Issue 35082: Don't return deleted attributes when calling dir on a

- Issue 0: Improved an error message when mock assert_has_calls fails.

- Issue 23078: Add support for :func:classmethod and :func:staticmethod
  to :func:unittest.mock.create_autospec.  Initial patch by Felipe Ochoa.

- Issue 21478: Calls to a child function created with
  :func:unittest.mock.create_autospec should propagate to the parent.
  Patch by Karthikeyan Singaravelan.

- Issue 36598: Fix isinstance check for Mock objects with spec when the
  code is executed under tracing. Patch by Karthikeyan Singaravelan.

- Issue 32933: :func:unittest.mock.mock_open now supports iteration over
  the file contents. Patch by Tony Flury.

- Issue 21269: Add args and kwargs properties to mock call objects.
  Contributed by Kumar Akshay.

- Issue 17185: Set __signature__ on mock for :mod:inspect to get
  signature. Patch by Karthikeyan Singaravelan.

- Issue 35047: unittest.mock now includes mock calls in exception
  messages if assert_not_called, assert_called_once, or
  assert_called_once_with fails. Patch by Petter Strandmark.

- Issue 28380: unittest.mock Mock autospec functions now properly support
  assert_called, assert_not_called, and assert_called_once.

- Issue 28735: Fixed the comparison of mock.MagickMock with mock.ANY.

- Issue 20804: The unittest.mock.sentinel attributes now preserve their
  identity when they are copied or pickled.

- Issue 28961: Fix unittest.mock._Call helper: don't ignore the name parameter
  anymore. Patch written by Jiajun Huang.

- Issue 26750: unittest.mock.create_autospec() now works properly for
  subclasses of property() and other data descriptors.

- Issue 21271: New keyword only parameters in reset_mock call.

- Issue 26807: mock_open 'files' no longer error on readline at end of file.
  Patch from Yolanda Robla.

- Issue 25195: Fix a regression in mock.MagicMock. _Call is a subclass of
  tuple (changeset 3603bae63c13 only works for classes) so we need to
  implement __ne__ ourselves.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 14 08:48:13 2015 UTC (4 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-
Changes since 1.1: +39 -3 lines
Diff to previous 1.1 (colored)

Update to 1.1.2:


* Closes #269: setup_requires pbr 1.3


* 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, 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 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 21239. unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times
* Closes Issue 21222
* Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names
* Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works
* Issue 20968. 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
* 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 17467. 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 15323. 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 14634. 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

Revision / (download) - annotate - [select for diffs] (vendor branch), Sat Jan 29 14:53:14 2011 UTC (8 years, 8 months ago) by gdt
Branch: TNF
CVS Tags: pkgsrc-base, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import py26-mock-0.7.0b4 as devel/py-mock.

mock is a Python module that provides a core Mock class.  It removes
the need to create a host of stubs throughout your test suite.  After
performing an action, you can make assertions about which methods /
attributes were used and arguments they were called with.  You can
also specify return values and set needed attributes in the normal

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 29 14:53:14 2011 UTC (8 years, 8 months ago) by gdt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>