Change Log¶
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[v3.0.0]¶
Presents better documentation
Drops support to Python 2 obliterates the
sure.compat
moduleIntroduces the modules: -
sure.doubles
sure.doubles.fakes
sure.doubles.stubs
sure.doubles.dummies
Introduces the classes: -
sure.doubles.dummies.Anything
(moved fromsure.Anything
) -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
sure.AssertionBuilder
constructor parameters: -with_kwargs
towith_kws
-and_kwargs
toand_kws
- Functions or methods decorated with the
sure.within()
decorator no longer receive a
datetime.datetime
object as first argument.
- Functions or methods decorated with the
[v2.0.0]¶
Fixed¶
No longer patch the builtin
dir()
function, which fixes pytest in some cases such as projects using gevent.
[v1.4.11]¶
Fixed¶
Reading the version dinamically was causing import errors that caused error when installing package. Refs #144
v1.4.7¶
Fixed¶
Remove wrong parens for format call. Refs #139
v1.4.6¶
Added¶
Support and test against PyPy 3
Fixed¶
Fix safe representation in exception messages for bytes and unicode objects. Refs #136
v1.4.5¶
Fixed¶
Correctly escape special character for
str.format()
for assertion messages. Refs #134
v1.4.4¶
Nothing to mention here.
v1.4.3¶
Fixed¶
Bug in setup.py that would break in python > 2
v1.4.2¶
Added¶
ensure
context manager to provide custom assertion messages. Refs #125
v1.4.1¶
Added¶
Python 3.6 support
Python 3.7-dev support (allowed to fail)
Fixed¶
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
v1.4.0¶
Added¶
anything object which is accessible with
sure.anything
interface to extend sure. Refs #31
Removed¶
Last traces of Python 2.6 support
Fixed¶
Allow overwriting of monkey-patched properties by sure. Refs #19
Assertions for raises
v1.3.0¶
Added¶
Python 3.3, 3.4 and 3.5 support
pypy support
Support comparison of OrderedDict. Refs #55
Fixed¶
contain
assertion. Refs #104