All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Pervasive test-coverage
- Presents better documentation, refactoring and bugfixes
- Drops support to Python 2 obliterates the
sure.compat
module - Introduces 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`object
and its subclasses is disabled by default and needs to be enabled explicitly, programmatically via sure.enable_special_syntax() or via command-line with the flags: -s or --special-syntax` - Moves
`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
- Removes methods from
sure.original.AssertionHelper
:sure.original.AssertionHelper.differs
sure.original.AssertionHelper.has
sure.original.AssertionHelper.is_a
sure.original.AssertionHelper.every_item_is
sure.original.AssertionHelper.at
sure.original.AssertionHelper.like
- Feel free to open an issue requesting any of those methods to be added back to Sure's codebase.
- No longer patch the builtin
dir()
function, which fixes pytest in some cases such as projects using gevent.
- Reading the version dynamically 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