The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-mock

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 26 10:18:41 2021 UTC (2 years, 5 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, HEAD
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.9 (colored)

archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 7 13:43:22 2021 UTC (2 years, 6 months ago) by nia
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored) to selected 1.9 (colored)

devel: Remove SHA1 hashes for distfiles

Revision 1.10 / (download) - annotate - [select for diffs], Mon May 20 11:49:10 2019 UTC (4 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

py-mock: updated to 3.0.5

3.0.5
- Issue 31855: :func:unittest.mock.mock_open results now respects the
  argument of read([size]).

Revision 1.9 / (download) - annotate - [selected], Sun May 5 04:55:10 2019 UTC (4 years, 11 months ago) by adam
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

py-mock: updated to 3.0.4

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

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

3.0.2
- Add missing funcsigs dependency on Python 2.

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

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

- 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
  :class:unittest.mock.Mock.

- 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.8 / (download) - annotate - [select for diffs], Wed Apr 13 17:56:24 2016 UTC (8 years 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
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored) to selected 1.9 (colored)

Update py-mock to 2.0.0

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.

- 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

Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 3 03:29:10 2015 UTC (8 years, 5 months ago) by agc
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.9 (colored)

Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 26 22:47:34 2015 UTC (8 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) to selected 1.9 (colored)

Update to 1.3.0:

1.3.0
-----

* Update sync point
* Issue #21750: Further fixup to be styled like other mock APIs
* Typo fix in mock.patch

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 19 10:14:33 2015 UTC (8 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored) to selected 1.9 (colored)

Update to 1.2.0:

1.2.0
-----

* Revert "Issue #21750: mock_open.read_data can now be read from each instance, as it"

1.1.4
-----

* 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 2.6

1.1.3
-----

* 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<17.1

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 14 08:48:13 2015 UTC (8 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored) to selected 1.9 (colored)

Update to 1.1.2:

1.1.2
-----

* Closes #269: setup_requires pbr 1.3

1.1.1
-----

* Closes #257: version the dependency on six
* Rename README.txt to README.rst

1.1.0
-----

* 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 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 1.3 / (download) - annotate - [select for diffs], Sun Dec 2 13:12:28 2012 UTC (11 years, 4 months ago) by wen
Branch: MAIN
CVS Tags: 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
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored) to selected 1.9 (colored)

Update to 1.0.1

Upstream changes:
2012/11/5 Version 1.0.1
Functions decorated with patch variants have a __wrapped__ attribute pointing to the original function. This brings compatibility with the default behaviour in Python 3.3 (due to a new feature in functools.wraps).
Note that due to changes in tox, mock is no longer tested with Python 2.4. The compatibility code has not been removed so it probably still works, but tests are no longer run.

2012/10/07 Version 1.0.0
No changes since 1.0.0 beta 1. This version has feature parity with unittest.mock in Python 3.3.

Full list of changes since 0.8:

mocksignature, along with the mocksignature argument to patch, removed
Support for deleting attributes (accessing deleted attributes will raise an AttributeError)
Added the mock_open helper function for mocking the builtin open
__class__ is assignable, so a mock can pass an isinstance check without requiring a spec
Addition of PropertyMock, for mocking properties
MagicMocks made unorderable by default (in Python 3). The comparison methods (other than equality and inequality) now return NotImplemented
Propagate traceback info to support subclassing of _patch by other libraries
create_autospec works with attributes present in results of dir that canÃÕ be fetched from the objectÃÔ class. Contributed by Konstantine Rybnikov
Any exceptions in an iterable side_effect will be raised instead of returned
In Python 3, create_autospec now supports keyword only arguments
Added patch.stopall method to stop all active patches created by start
BUGFIX: calling MagicMock.reset_mock wouldnÃÕ reset magic method mocks
BUGFIX: calling reset_mock on a MagicMock created with autospec could raise an exception
BUGFIX: passing multiple spec arguments to patchers (spec , spec_set and autospec) had unpredictable results, now it is an error
BUGFIX: using spec=True and create=True as arguments to patchers could result in using DEFAULT as the spec. Now it is an error instead
BUGFIX: using spec or autospec arguments to patchers, along with spec_set=True did not work correctly
BUGFIX: using an object that evaluates to False as a spec could be ignored
BUGFIX: a list as the spec argument to a patcher would always result in a non-callable mock. Now if __call__ is in the spec the mock is callable

Revision 1.2 / (download) - annotate - [select for diffs], Thu Feb 16 21:45:18 2012 UTC (12 years, 2 months ago) by gls
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored) to selected 1.9 (colored)

Update devel/py-mock to 0.8.0.

Changelog:

2012/02/13 Version 0.8.0
------------------------

The only changes since 0.8rc2 are:

* Improved repr of :data:`sentinel` objects
* :data:`ANY` can be used for comparisons against :data:`call` objects
* The return value of the :class:`MagicMock` `__iter__` method can be set to
  any iterable and isn't required to be an iterator

Full List of changes since 0.7:

mock 0.8.0 is the last version that will support Python 2.4.

* Addition of :attr:`~Mock.mock_calls` list for *all* calls (including magic
  methods and chained calls)
* :func:`patch` and :func:`patch.object` now create a :class:`MagicMock`
  instead of a :class:`Mock` by default
* The patchers (`patch`, `patch.object` and `patch.dict`), plus `Mock` and
  `MagicMock`, take arbitrary keyword arguments for configuration
* New mock method :meth:`~Mock.configure_mock` for setting attributes and
  return values / side effects on the mock and its attributes
* New mock assert methods :meth:`~Mock.assert_any_call` and
  :meth:`~Mock.assert_has_calls`
* Implemented :ref:`auto-speccing` (recursive, lazy speccing of mocks with
  mocked signatures for functions/methods), as the `autospec` argument to
  `patch`
* Added the :func:`create_autospec` function for manually creating
  'auto-specced' mocks
* :func:`patch.multiple` for doing multiple patches in a single call, using
  keyword arguments
* Setting :attr:`~Mock.side_effect` to an iterable will cause calls to the mock
  to return the next value from the iterable
* New `new_callable` argument to `patch` and `patch.object` allowing you to
  pass in a class or callable object (instead of `MagicMock`) that will be
  called to replace the object being patched
* Addition of :class:`NonCallableMock` and :class:`NonCallableMagicMock`, mocks
  without a `__call__` method
* Addition of :meth:`~Mock.mock_add_spec` method for adding (or changing) a
  spec on an existing mock
* Protocol methods on :class:`MagicMock` are magic mocks, and are created
  lazily on first lookup. This means the result of calling a protocol method is
  a `MagicMock` instead of a `Mock` as it was previously
* Addition of :meth:`~Mock.attach_mock` method
* Added :data:`ANY` for ignoring arguments in :meth:`~Mock.assert_called_with`
  calls
* Addition of :data:`call` helper object
* Improved repr for mocks
* Improved repr for :attr:`Mock.call_args` and entries in
  :attr:`Mock.call_args_list`, :attr:`Mock.method_calls` and
  :attr:`Mock.mock_calls`
* Improved repr for :data:`sentinel` objects
* `patch` lookup is done at use time not at decoration time
* In Python 2.6 or more recent, `dir` on a mock will report all the dynamically
  created attributes (or the full list of attributes if there is a spec) as
  well as all the mock methods and attributes.
* Module level :data:`FILTER_DIR` added to control whether `dir(mock)` filters
  private attributes. `True` by default.
* `patch.TEST_PREFIX` for controlling how patchers recognise test methods when
  used to decorate a class
* Support for using Java exceptions as a :attr:`~Mock.side_effect` on Jython
* `Mock` call lists (`call_args_list`, `method_calls` & `mock_calls`) are now
  custom list objects that allow membership tests for "sub lists" and have
  a nicer representation if you `str` or `print` them
* Mocks attached as attributes or return values to other mocks have calls
  recorded in `method_calls` and `mock_calls` of the parent (unless a name is
  already set on the child)
* Improved failure messages for `assert_called_with` and
  `assert_called_once_with`
* The return value of the :class:`MagicMock` `__iter__` method can be set to
  any iterable and isn't required to be an iterator
* Added the Mock API (`assert_called_with` etc) to functions created by
  :func:`mocksignature`
* Tuples as well as lists can be used to specify allowed methods for `spec` &
  `spec_set` arguments
* Calling `stop` on an unstarted patcher fails with  a more meaningful error
  message
* Renamed the internal classes `Sentinel` and `SentinelObject` to prevent abuse
* BUGFIX: an error creating a patch, with nested patch decorators, won't leave
  patches in place
* BUGFIX: `__truediv__` and `__rtruediv__` not available as magic methods on
  mocks in Python 3
* BUGFIX: `assert_called_with` / `assert_called_once_with` can be used with
  `self` as a keyword argument
* BUGFIX: when patching a class with an explicit spec / spec_set (not a
  boolean) it applies "spec inheritance" to the return value of the created
  mock (the "instance")
* BUGFIX: remove the `__unittest` marker causing traceback truncation
* Removal of deprecated `patch_object`
* Private attributes `_name`, `_methods`, '_children', `_wraps` and `_parent`
  (etc) renamed to reduce likelihood of clash with user attributes.
* Added license file to the distribution

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Jan 29 14:53:14 2011 UTC (13 years, 2 months ago) by gdt
Branch: TNF
CVS Tags: pkgsrc-base, 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) to selected 1.9 (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
way.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 29 14:53:14 2011 UTC (13 years, 2 months ago) by gdt
Branch: MAIN
Diff to selected 1.9 (colored)

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 <webmaster@jp.NetBSD.org>