All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
Presents better documentation
Drops support to Python 2 obliterates the
sure.compat
moduleIntroduces the modules: - :mod:`sure.doubles`
Introduces the classes: - :class:`sure.doubles.dummies.Anything` (moved from
sure.Anything
) - :class:`sure.doubles.dummies.AnythingOfType`Sure’s featured synctactic-sugar of injecting/monkey-patching
.should
,.should_not
, et cetera methods into :class:object
and its subclasses is disabled by default and needs to be enabled explicitly, programmatically viasure.enable_special_syntax()
or via command-line with the flags:-s
or--special-syntax
Moves :class:
sure.original.that
to :attr:sure.that
as an instance of :class:sure.original.AssertionHelper
rather than an alias to the class.AssertionHelper.every_one_is()
renamed toAssertionHelper.every_item_is()
Renames :class:`sure.AssertionBuilder` constructor parameters: -
with_kwargs
towith_kws
-and_kwargs
toand_kws
- Functions or methods decorated with the :func:`sure.within`
decorator no longer receive a :class:`datetime.datetime` object as first argument.
- No longer patch the builtin
dir()
function, which fixes pytest in some cases such as projects using gevent.
- Reading the version dinamically was causing import errors that caused error when installing package. Refs #144
- Remove wrong parens for format call. Refs #139
- Support and test against PyPy 3
- Fix safe representation in exception messages for bytes and unicode objects. Refs #136
- Correctly escape special character for
str.format()
for assertion messages. Refs #134
Nothing to mention here.
- Bug in setup.py that would break in python > 2
ensure
context manager to provide custom assertion messages. Refs #125
- Python 3.6 support
- Python 3.7-dev support (allowed to fail)
- Do not overwrite existing class and instance attributes with sure properties (when. should, …). Refs #127, #129
- Fix patched built-in
dir()
method. Refs #124, #128
- anything object which is accessible with
sure.anything
- interface to extend sure. Refs #31
- Last traces of Python 2.6 support
- Allow overwriting of monkey-patched properties by sure. Refs #19
- Assertions for raises
- Python 3.3, 3.4 and 3.5 support
- pypy support
- Support comparison of OrderedDict. Refs #55
contain
assertion. Refs #104