Expects

Latest version: v0.9.0

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

Scan your dependencies

Page 4 of 4

0.2.2

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

Bug fixes
^^^^^^^^^

* `to.raise_error` now works with a non-string object as second arg. See docs for `examples <http://expects.readthedocs.org/en/0.2.2/reference.htmlraise-error>`_.

0.2.1

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

Highlights
^^^^^^^^^^

* Added a `testing` module with the `failure` contextmanager.
* Added a `matchers` module and the `key` matcher.

Bug fixes
^^^^^^^^^

* `to.have` and `to.only.have` now work properly when actual is a string.

0.2.0

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

Highlights
^^^^^^^^^^

* Added initial plugins support. See `plugins docs <http://expects.readthedocs.org/en/0.2.0/plugins.html>`_ for more info.
* The ``key`` and ``property`` expectations now return a new ``Expects`` object that can be used to chain expectations.
* Now every expectation part can be prefixed with ``not_`` in order to negate an expectation. Ex: ``expect('foo').not_to.be.empty`` is the same than ``expect('foo').to.not_be.empty``.
* Added the ``only.have`` expectation to test that the subject *only* has the given items.

Backwards-incompatible
^^^^^^^^^^^^^^^^^^^^^^

* The ``greater_than``, ``greater_or_equal_to``, ``less_than`` and ``less_or_equal_to`` expectations are renamed to ``above``, ``above_or_equal``, ``below`` and ``below_or_equal``.

0.1.1

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

Bug fixes
^^^^^^^^^

* `to.have` when iterable items are not hashable (`Issue 8 <https://github.com/jaimegildesagredo/expects/issues/8>`_).
* `to.have.key` weird behavior when actual is not a `dict` (`Issue 10 <https://github.com/jaimegildesagredo/expects/issues/10>`_).

0.1.0

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

Highlights
^^^^^^^^^^

* First `expects` release.

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.