Doublex-expects

Latest version: v0.7.1

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.7.1

------------------

Bug fixes
^^^^^^^^^^

* ``have_been_satisfied_in_any_order`` matcher failed in some cases. See issue `GH-19 <https://github.com/jaimegildesagredo/doublex-expects/issues/19>`_ and pull request `GH-20 <https://github.com/jaimegildesagredo/doublex-expects/pull/20>` for more info._

0.7.0

------------------

Highlights
^^^^^^^^^^

* 0.7.0 final release with support for expects >= 0.8.0.

0.7.0rc2

---------------------

Bug fixes
^^^^^^^^^

* Resolve error when passing an object with custom ``__eq__`` to ``have_been_called_with``. See `GH-10 <https://github.com/jaimegildesagredo/doublex-expects/issues/10>`_.

0.7.0rc1

---------------------

Highlights
^^^^^^^^^^

* Work with expects >= 0.8.0rc1

0.6.0

------------------

Highlights
^^^^^^^^^^

* Added ``have_been_satisfied`` and ``have_been_satisfied_in_any_order`` matchers to verify mocks::

with Mock() as my_mock:
my_mock.method(1)
my_mock.method(2)

my_mock.method(1)
my_mock.method(2)

expect(my_mock).to(have_been_satisfied)

* And::

with Mock() as my_mock:
my_mock.method(1)
my_mock.method(2)

my_mock.method(2)
my_mock.method(1)

expect(my_mock).to(have_been_satisfied_in_any_order)

0.5.0

------------------

Highlights
^^^^^^^^^^

* Now another matchers can be passed as ``have_been_called_with`` arguments::

my_spy = Spy()

my_spy.method(1)

expect(my_spy.method).to(have_been_called_with(an(int)))

* Added the ``anything`` matcher::

expect(my_spy.method).to(have_been_called_with(anything))

* Added the ``any_arg`` special matcher::

expect(my_spy.method).to(have_been_called_with(1, any_arg))

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.