Nti-testing

Latest version: v2.1.0

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

Scan your dependencies

2.1.1

==================

- Nothing changed yet.

2.1.0

==================

- Make ``Acquisition`` an optional dependency. If it is not installed,
the ``aq_inContextOf`` matcher will always return False.
- Remove dependency on ``fudge``. Instead, we now use ``unittest.mock`` on
Python 3, or its backport ``mock`` on Python 2. See `issue 11
<https://github.com/NextThought/nti.testing/issues/11>`_.
- Refactor ZCML configuration support to share more code and
documentation. See `issue 10
<https://github.com/NextThought/nti.testing/issues/10>`_.
- The layer ``ConfiguringLayerMixin`` and the base class
``SharedConfiguringTestBase`` now default to running
configuration in the package the subclass is defined in, just as
subclasses of ``ConfiguringTestBase`` did.

2.0.1

==================

- The validation matchers (``validated_by`` and ``not_validated_by``)
now consider it a failure (by default) if the validate method raises
anything other than ``zope.interface.exceptions.Invalid`` (which
includes the ``zope.schema`` exceptions like ``WrongType``).
Previously, they accepted any exception as meaning the object was
invalid, but this could hide bugs in the actual validation method
itself. You can supply the ``invalid`` argument to the matchers to
loosen or tighten this as desired. (Giving ``invalid=Exception``
will restore the old behaviour.)
See `issue 7 <https://github.com/NextThought/nti.testing/issues/7>`_.

2.0.0

==================

- Add support for Python 3.6.
- Remove ``unicode_literals``.
- Substantially rework ``time_monotonically_increases`` for greater
safety. Fixes `issue 5 <https://github.com/NextThought/nti.testing/issues/5>`_.

1.0.0

==================

- Add Python 3 support.
- Initial PyPI release.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.