14
0
Commit Graph

18 Commits

Author SHA256 Message Date
d0e854a50b Accepting request 887439 from devel:languages:python
- Update to 1.2.2:
  * Fix typo in ``spy2`` doc
- Do not build for Python 3.6, due to no NumPy.

OBS-URL: https://build.opensuse.org/request/show/887439
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=9
2021-04-22 16:04:05 +00:00
303ab31152 - Update to 1.2.2:
* Fix typo in ``spy2`` doc
- Do not build for Python 3.6, due to no NumPy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=17
2021-04-22 06:01:52 +00:00
8946479ac9 Accepting request 790480 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/790480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=8
2020-04-01 17:17:35 +00:00
Tomáš Chvátal
ce9992dfc1 Accepting request 790462 from home:pgajdos:python
- version update to 1.2.1
  - @nielsvaneck fixed how we can lookup inherited classmethods.
  - Code base now is python 3 compatible. No 2to3 anymore.
  - Fine tune error messages on unexpected calls or verifications. 
  - @felixonmars fixed a small compatibility issue with python 3.8
  - Mocking properties has become a bit easier. (#26)

OBS-URL: https://build.opensuse.org/request/show/790462
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=15
2020-04-01 08:03:51 +00:00
1892001dc9 Accepting request 692235 from devel:languages:python
- Disable python3 building as the mockito is py2 only (git master
  is py3 compatible so hopefully next release should be supported)

- Update to 1.1.1:
  * Added forget_invocations function. Thanks to @maximkulkin
  * Fix: The context manager (with) has now a proper implementation
  * Fix: Calling patch with two arguments can now be used with with
  * Fix: Do not treat the placeholder arguments (Ellipsis, args, kwargs) as special on call time anymore. (T.i. they only have a meaning when stubbing or verifying.)
  * Enhancement: Changed some truthy or equality tests to identity (is) tests. This reduces edge-cases where some user object defines __eq__ or __bool__. (Hello _numpy_!)
- Run tests

OBS-URL: https://build.opensuse.org/request/show/692235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=7
2019-04-08 18:53:42 +00:00
Tomáš Chvátal
ad726542fb - Disable python3 building as the mockito is py2 only (git master
is py3 compatible so hopefully next release should be supported)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=13
2019-04-08 08:59:10 +00:00
Tomáš Chvátal
56dca015d4 - Update to 1.1.1:
* Added forget_invocations function. Thanks to @maximkulkin
  * Fix: The context manager (with) has now a proper implementation
  * Fix: Calling patch with two arguments can now be used with with
  * Fix: Do not treat the placeholder arguments (Ellipsis, args, kwargs) as special on call time anymore. (T.i. they only have a meaning when stubbing or verifying.)
  * Enhancement: Changed some truthy or equality tests to identity (is) tests. This reduces edge-cases where some user object defines __eq__ or __bool__. (Hello _numpy_!)
- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=12
2019-04-05 12:42:08 +00:00
fc3dae25a0 Accepting request 659495 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=6
2018-12-24 10:39:43 +00:00
cbb078a7a4 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=10
2018-12-04 13:40:33 +00:00
35723972fe Accepting request 556388 from devel:languages:python
- update to version 1.0.12
 * see CHANGES.txt for a detailed changelog
 * changes in version 1.0.12:
  - Better error messages for failed verifications.
 * changes in version 1.0.7 - 1.0.10
  - ``verifyZeroInteractions`` implemented. This is actually a *breaking change*, because ``verifyZeroInteractions`` was an alias for ``verifyNoMoreInteractions`` (sic!).
  - All `verify*` functions now warn you if you pass in an object which was never stubbed.
 * changes in version 1.0.0 - 1.0.5
  - mockito's strict mode is far more strict than before
  - ``mock``, ``when``, ``verify`` return mostly empty objects. It is unlikely to have a method_name clash.
  - ``Mock()`` is now an implementation detail; it is **not** exported anymore. Use ``mock()``.
 * changes in version 0.7.1:
  - bugfixes
 * changes in version 0.7.0:
  - bugfixes
 * changes in version 0.6.1:
  - Added ``thenAnswer(callable)``. The callable will be called to compute the answer the stubbed method will return. For that it will receive the arguments of the caller.
 * changes in version 0.6.0:
  - Breaking change: Throw early when calling not expected methods in strict mode.
 * changes in version 0.5.3:
  - Remove hard coded distribute setup files.
- Remove no longer needed patch python-mockito-0.5.2-setup.py.patch

OBS-URL: https://build.opensuse.org/request/show/556388
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=5
2017-12-14 09:59:32 +00:00
Tomáš Chvátal
309261eb54 - Remove no longer needed patch python-mockito-0.5.2-setup.py.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=8
2017-12-12 08:22:17 +00:00
Tomáš Chvátal
07f26a08e3 Accepting request 556077 from home:sebix:branches:devel:languages:python
- update to version 1.0.12

OBS-URL: https://build.opensuse.org/request/show/556077
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=7
2017-12-12 08:14:10 +00:00
Stephan Kulow
cd0aa74fbb Accepting request 209842 from devel:languages:python
- Update to version 0.5.2
  + No changelog available
- Remove redundant %clean section
- Adapt setup.py.patch to upstream changes
- Rename it to respect standard naming conventions
- Remove python-mockito.rpmlintrc; problem of execution bits have 
  been fixed by upstream (forwarded request 209841 from posophe)

OBS-URL: https://build.opensuse.org/request/show/209842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=3
2013-12-09 16:01:09 +00:00
Denisart Benjamin
3bde18a439 Accepting request 209841 from home:posophe:branches:devel:languages:python
- Update to version 0.5.2
  + No changelog available
- Remove redundant %clean section
- Adapt setup.py.patch to upstream changes
- Rename it to respect standard naming conventions
- Remove python-mockito.rpmlintrc; problem of execution bits have 
  been fixed by upstream

OBS-URL: https://build.opensuse.org/request/show/209841
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=5
2013-12-08 16:24:45 +00:00
Tomáš Chvátal
ab78a33571 Accepting request 204598 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/204598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=2
2013-10-25 09:22:15 +00:00
Sascha Peilicke
110373c31a - Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=3
2013-10-24 11:08:53 +00:00
Stephan Kulow
672b1b9f06 Accepting request 201576 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/201576
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mockito?expand=0&rev=1
2013-10-02 15:19:58 +00:00
Sascha Peilicke
e5960da31a osc copypac from project:Cloud:OpenStack:Master package:python-mockito revision:4
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=1
2013-09-30 15:38:30 +00:00