Commit Graph

27 Commits

Author SHA256 Message Date
Dominique Leuenberger
e64f7a3296 Accepting request 753969 from devel:languages:python:pytest
- Update to 1.12.1:
  * Fix error if mocker.patch is used in code where the source file
    is not available, for example stale .pyc files
  * Now all patch functions also raise a ValueError when used as a
    context-manager

OBS-URL: https://build.opensuse.org/request/show/753969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=16
2019-12-11 10:59:52 +00:00
Tomáš Chvátal
3bf39040c1 - Update to 1.12.1:
* Fix error if mocker.patch is used in code where the source file
    is not available, for example stale .pyc files
  * Now all patch functions also raise a ValueError when used as a
    context-manager

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=21
2019-12-04 12:07:12 +00:00
Dominique Leuenberger
c3f98f3838 Accepting request 749236 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/749236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=15
2019-11-22 09:25:44 +00:00
Tomáš Chvátal
fc04c77c35 Accepting request 749233 from home:frispete:python
Done:

- Disable current failing tests
  see: https://github.com/pytest-dev/pytest-mock/issues/167
  boils done to an issue of pytest

OBS-URL: https://build.opensuse.org/request/show/749233
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=19
2019-11-18 09:58:52 +00:00
Tomáš Chvátal
abc8e44210 - Update to 1.11.2:
* The pytest introspection follows message is no longer shown
    if there is no pytest introspection (#154)
  * mocker now raises a ValueError when used as a context-manager

- Update to 1.11.1:
  * Fix mocker.spy on Python 2 when used on non-function objects
    which implement __call__ (#157).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=18
2019-11-05 10:53:59 +00:00
Dominique Leuenberger
b3f976ab26 Accepting request 734062 from devel:languages:python:pytest
- Update to 1.11.0:
  * The object returned by mocker.spy now also tracks the return
    value of the spied method/function.
- Drop merged patch mock3.patch and fix_tests.patch

OBS-URL: https://build.opensuse.org/request/show/734062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=14
2019-10-07 11:39:38 +00:00
Tomáš Chvátal
24f04b847b - Update to 1.11.0:
* The object returned by mocker.spy now also tracks the return
    value of the spied method/function.
- Drop merged patch mock3.patch and fix_tests.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=16
2019-09-30 12:24:55 +00:00
Dominique Leuenberger
233df2937d Accepting request 730055 from devel:languages:python:pytest
- Add back the mock 3.0 patch as the mock is being integrated now:
  * mock3.patch

OBS-URL: https://build.opensuse.org/request/show/730055
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=13
2019-09-23 10:06:35 +00:00
Tomáš Chvátal
994534d7c5 - Add back the mock 3.0 patch as the mock is being integrated now:
* mock3.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=14
2019-09-11 08:21:53 +00:00
Dominique Leuenberger
348dc0c317 Accepting request 718868 from devel:languages:python:pytest
- Remove mock30.patch for now as we are not able to upgrade
  to mock3 yet

- add upstream patch to test with pytest5 - fix_tests.patch 

- Add patch from upstream to build with new mock:
  * mock30.patch

OBS-URL: https://build.opensuse.org/request/show/718868
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=12
2019-07-30 11:06:23 +00:00
Tomáš Chvátal
32a128e74c - Remove mock30.patch for now as we are not able to upgrade
to mock3 yet

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=12
2019-07-26 12:27:26 +00:00
5c4df46496 - add upstream patch to test with pytest5 - fix_tests.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=11
2019-07-18 08:53:17 +00:00
Tomáš Chvátal
8b4c7c2210 - Add patch from upstream to build with new mock:
* mock30.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=10
2019-05-15 17:40:12 +00:00
Dominique Leuenberger
01ad45569f Accepting request 699374 from devel:languages:python:pytest
- Update to 1.10.4:
  * Fix plugin when 'terminal' plugin is disabled

OBS-URL: https://build.opensuse.org/request/show/699374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=11
2019-05-02 17:13:47 +00:00
Tomáš Chvátal
5e94b71b18 - Update to 1.10.4:
* Fix plugin when 'terminal' plugin is disabled

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=8
2019-04-29 08:07:31 +00:00
Dominique Leuenberger
7fffd609bb Accepting request 690275 from devel:languages:python:pytest
- Update to 1.10.3:
  * Fix test suite in Python 3.8. Thanks @hroncok for the report and @blueyed for the PR (#140).

OBS-URL: https://build.opensuse.org/request/show/690275
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=10
2019-04-04 10:00:26 +00:00
Tomáš Chvátal
30379a6a38 - Update to 1.10.3:
* Fix test suite in Python 3.8. Thanks @hroncok for the report and @blueyed for the PR (#140).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=6
2019-04-01 08:36:12 +00:00
Dominique Leuenberger
d15ef49241 Accepting request 688629 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/688629
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=9
2019-03-29 19:37:41 +00:00
Tomáš Chvátal
dfed9bffb9 Accepting request 688627 from home:jayvdb:django
- Update to v1.10.2
  * Fix bug at the end of the test session when a call to
    patch.stopall is done explicitly by user code.

OBS-URL: https://build.opensuse.org/request/show/688627
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=4
2019-03-26 09:41:07 +00:00
Stephan Kulow
e78171b7d2 Accepting request 674447 from devel:languages:python:pytest
- Update to 1.10.1:
  * Fix broken links and update README. Also the code is now formatted using black.

OBS-URL: https://build.opensuse.org/request/show/674447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=8
2019-02-24 16:05:20 +00:00
Dominique Leuenberger
48aacc1496 Accepting request 605130 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/605130
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=7
2018-05-11 09:26:38 +00:00
Dominique Leuenberger
dd3e42c536 Accepting request 599637 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/599637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=6
2018-04-26 11:34:36 +00:00
Dominique Leuenberger
1b2e7377ba Accepting request 582182 from devel:languages:python
- update to 1.7.1
  * fix reading README.rst in setup.py

- fix deps for setuptools

- update to 1.7.0
  * Drop support for python-2.6 and python-3.3

OBS-URL: https://build.opensuse.org/request/show/582182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=5
2018-03-05 12:36:03 +00:00
Dominique Leuenberger
c8d84e85b7 Accepting request 563590 from devel:languages:python
- Fix building with python3 only available
- Install properly license file/etc

OBS-URL: https://build.opensuse.org/request/show/563590
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=4
2018-01-16 08:37:39 +00:00
Dominique Leuenberger
07ca7a3be9 Accepting request 533466 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/533466
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=3
2017-10-21 18:20:13 +00:00
Dominique Leuenberger
bafad513a0 Accepting request 516165 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/516165
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=2
2017-08-14 10:38:47 +00:00
Dominique Leuenberger
6962a44623 Accepting request 492870 from devel:languages:python
needed for new python-requests

OBS-URL: https://build.opensuse.org/request/show/492870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=1
2017-05-16 12:28:46 +00:00