Verify

Latest version: v1.1.1

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

Scan your dependencies

Page 1 of 2

1.1.1

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

- Fix compatibility with pydash v4.

1.1.0

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

- Add ``ensure`` as alias of ``expect``.
- Add ``to_be_*`` and ``is_*`` aliases for all assertions.

1.0.0

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

- Add ``NotLength``.
- Make assertions accept an optional argument, ``msg``, that overrides the default assert message on a per call basis.
- Make ``Between`` and ``Length`` only accept keyword arguments ``min`` and ``max``. (**breaking change**)

0.6.0

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

- Make ``expect`` into a class and support method chaining of assertions. Original usage is still supported.
- Make ``expect`` wrap external predicate functions with ``Predicate`` for evaluation. (**breaking change**)
- Make ``Predicate`` catch ``AssertionError`` thrown by `comparable` and return ``False``. (**breaking change**)
- Make ``Predicate`` treat a `comparable` that returns ``None`` as passing. (**breaking change**)
- Rename ``InstanceOf`` and ``NotInstanceOf`` to ``Type`` and ``NotType``. (**breaking change**)

0.5.0

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

- Add ``NotEqual``.
- Add ``NotMatch``.
- Add ``NotBetween``.
- Add ``IsNot``.
- Add ``IsNotTrue``.
- Add ``IsNotFalse``.
- Add ``IsNotNone``.
- Add ``NotAll``.
- Add ``NotAny``.
- Add ``NotIn``.
- Add ``NotContains``.
- Add ``NotContainsOnly``.
- Add ``NotSubset``.
- Add ``NotSuperset``.
- Add ``NotUnique``.
- Add ``NotInstanceOf``.
- Add ``NotBoolean``.
- Add ``NotString``.
- Add ``NotDict``.
- Add ``NotList``.
- Add ``NotTuple``.
- Add ``NotDate``.
- Add ``NotDateString``.
- Add ``NotInt``.
- Add ``NotFloat``.
- Rename ``NaN`` to ``NotNumber``. (**breaking change**)

0.4.0

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

- Make ``Between`` accept keyword arguments for ``min`` and ``max``.
- Make ``Length`` function like ``Between`` and allow comparison over range of lengths. If a single comparable value is passed in, then comparison uses the value as a max length. Previously, a single comparable value performed an equality check for length. (**breaking change**)
- Make ``Match`` accept keyword argument ``flags`` for use with string based regular expression.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.