Skip to content

Releases: approvals/ApprovalTests.Python

approvaltests-minimal: introducing a new pypi package

24 Jul 17:25
Compare
Choose a tag to compare

adding another pypi package that is released at the same time as the normal release:

  • approvaltests - the standard release of approvaltests with all dependencies added by default
  • approvaltests-minimal - the same release with none of the extra dependencies added, with the option to opt in to them individually

Allow minimal imports by lazy loading dependencies

17 Jul 17:44
Compare
Choose a tag to compare

The following dependencies are only needed if used

  • BeautifulSoup4 in verify_html
  • allpairspy in pairwise approvals
  • pyperclip in clipboard reporter

Markdown Table

19 Jun 17:40
8c03ee7
Compare
Choose a tag to compare

Better support for multiple approvals per test

30 May 17:36
Compare
Choose a tag to compare

Verifiable

29 May 17:48
Compare
Choose a tag to compare

You can now create Verifiable objects, which know how to verify themselves. See:
Creating custom verify methods
Also added remove_indentation_from.

Fixes for Pytest-Approvaltets package

08 May 19:02
Compare
Choose a tag to compare
  • Better init.py for backwards compatibility
  • PythonNativeReporter + PythonNative will resolve from ReporterFactory

Minor Linting

17 Apr 17:26
Compare
Choose a tag to compare

Fixed a few pylint complaints

Minor Linting + Structural Refactoring

05 Apr 22:03
Compare
Choose a tag to compare

This is only breaking if you Extend the Namer Classes.

Breaking Changes

Namer/NamerBase

Namer is now a pure interface and the abstract parts have been moved to NamerBase
Fix If you are extending approvaltests.core.Namer you will probably want to extend approvaltests.namer.NamerBase

StactFrameNamer renames

  • Directory -> directory
  • MethodName -> method_name
  • ClassName -> class_name

Verify Best covering Pairs

27 Mar 17:52
Compare
Choose a tag to compare

verify_best_covering_pairs
works the same as
verify_all_combinations
but with a much small set in some cases:
Table of reduction

This release add the allpairspy dependency

Scrubbing Existing Files

27 Feb 18:31
Compare
Choose a tag to compare

Breaking Features

  • verify_file() will now scrub it if a scrubber is attached.
    Note: If you scrub an existing file, it will be written as UTF8, instead of it's existing encoding
  • Removed Deprecated method verify_file_with_encoding(),
    NOTE: if you call verify_file() instead, your code will work as before