Revisions of python-pytest-mock

Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1134209 from Daniel Garcia's avatar Daniel Garcia (dgarcia) (revision 26)
- Fix tests with python 3.11.7
- Add patch fix-tests-python3117.patch gh#pytest-dev/pytest-mock#403
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1124082 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 25)
- update to 3.12.0:
  * Added support for Python 3.12.
  * Dropped support for EOL Python 3.7.
  * ``mocker.resetall()`` now also resets mocks created by
    ``mocker.create_autospec`` (`#390`_).

- add upstream patch to test with pytest5 - fix_tests.patch
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1100451 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 24)
- update to 3.11.1:
  * Fixed introspection for failed ``assert_has_calls``
  * Updated type annotations for ``mocker.patch`` and
    ``mocker.spy`` (`#364`_).
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1039088 from Daniel Garcia's avatar Daniel Garcia (dgarcia) (revision 22)
- Remove python_module macro definition
- Remove pytest-mock-issue272-asyncio.patch
- Add python-py dependency
- Update to 3.10.0:
  * Added new mocker.stop(m) method to stop specific mocker.patch or mocker.spy
    calls (#319).
- 3.9.0:
  * Expose NonCallableMagicMock via the mocker fixture (#318).
- 3.8.2:
  * Fixed AsyncMock support for Python 3.7+ in mocker.async_stub (#302).
- 3.8.1:
  * Fix regression caused by an explicit mock dependency in the code (#298).
- 3.8.0:
  * Add MockerFixture.async_mock method. Thanks @PerchunPak for the PR (#296).
- 3.7.0:
  * Python 3.10 now officially supported.
  * Dropped support for Python 3.6.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 900347 from Antonio Larrosa's avatar Antonio Larrosa (alarrosa) (revision 20)
poetry is now fixed with https://build.opensuse.org/request/show/900345

- Update to 3.6.1:
  * Fix mocker.resetall() when using mocker.spy() (#237)
- Update to 3.6.0:
  * pytest-mock no longer supports Python 3.5.
  * Correct type annotations for mocker.patch.object to also
    include the string form.
  * reset_all now supports return_value and side_effect keyword
    arguments.
- Update to 3.5.1:
  * Use inspect.getattr_static instead of resorting to
    object.__getattribute__ magic. This should better comply with
    objects which implement a custom descriptor protocol.
- Update to 3.5.0:
  * Now all patch functions will emit a warning instead of raising
    a ValueError when used as a context-manager.
  * Additionally, mocker.patch.context_manager is available when
    the user intends to mock a context manager (for example
    threading.Lock object), which will not emit that warning.
- Update to 3.4.0:
  * Add [mock.seal]{.title-ref} alias to the [mocker]{.title-ref}
    fixture (#211).
  * Fixed spying on exceptions not covered by the Exception
    superclass (#215), like KeyboardInterrupt
    Before the fix, both spy_return and spy_exception were always
    assigned to None whenever such an exception happened. And
    after this fix, spy_exception is set to a correct value of
    an exception.
- Update to 3.3.1:
  * Introduce MockFixture as an alias to MockerFixture.
    Before 3.3.0, the fixture class was named MockFixture, but was
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 812814 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 19)
- Update to 3.1.1:
  * Fixed performance regression caused by the ValueError raised
    when mocker is used as context manager (#191).
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 798138 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 18)
- Update to 3.1.0:
  * Python 2.7 and 3.4 are no longer supported
  * New mocker fixtures added that allow using mocking functionality
    in other scopes
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 761149 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 17)
- Update to 2.0.0:
  * mocker.spy attributes for tracking returned values and raised
    exceptions of its spied functions are now called spy_return
    and spy_exception, instead of reusing the existing MagicMock
    attributes return_value and side_effect.
  * The deprecated mock alias to the mocker fixture has finally
    been removed.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 753969 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 16)
- 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
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 734062 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 14)
- 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
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 730055 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 13)
- Add back the mock 3.0 patch as the mock is being integrated now:
  * mock3.patch
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 718868 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 12)
- 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
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 699374 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 11)
- Update to 1.10.4:
  * Fix plugin when 'terminal' plugin is disabled
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 690275 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 10)
- Update to 1.10.3:
  * Fix test suite in Python 3.8. Thanks @hroncok for the report and @blueyed for the PR (#140).
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 674447 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 8)
- Update to 1.10.1:
  * Fix broken links and update README. Also the code is now formatted using black.
Displaying revisions 1 - 20 of 26
openSUSE Build Service is sponsored by