./devel/py-approvaltests, Assertion/verification library to aid testing

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1.0, Package name: py38-approvaltests-1.1.0, Maintainer: schmonz

`approvaltests` is the Python port of ApprovalTests, an open source
assertion/verification library to aid testing.

You can use ApprovalTests to verify objects that require more than a
simple assert including long strings, large arrays, and complex hash
structures and objects. ApprovalTests really shines when you need a more
granular look at the test failure. Sometimes, trying to find a small
difference in a long string printed to STDOUT is just too hard!
ApprovalTests solves this problem by providing reporters which let you
view the test results in one of many popular diff utilities.


Required to run:
[devel/py-setuptools] [x11/py-pyperclip] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 5dfd57bea0092671a26acddc11df883ab3e9e1f3
RMD160: 6016c039d2eae76876b41129d7ad2fff372eaec8
Filesize: 24.318 KB

Version history: (Expand)


CVS history: (Expand)


   2021-07-21 15:42:15 by Amitai Schleier | Files touched by this commit (3) | Package updated
Log message:
Update to 1.1.0. From the changelog:

# Storyboards

Sometimes we might want to see different steps in a workflow or lifetime
of an object. Storyboards are a convenience object to help enable that.

Approvaltests allows us to look at a complete object instead of just
pieces of it. Storyboards allow us to track an object through time.

The mechanism to map time to space that storyboards use is very
analogous to a comic book, but with each frame vertically after each
other so that it works well with the diff tool and shows a progression.
   2021-06-28 22:32:11 by Amitai Schleier | Files touched by this commit (2) | Package updated
Log message:
Update to 1.0.1. From the changelog:

- Fixed major bug in the namer with unix and python3.8 and above.
   2021-06-23 20:20:18 by Amitai Schleier | Files touched by this commit (3) | Package updated
Log message:
Update to 1.0.0. From the changelog:

## Verify(text) ensures a newline at end of files

### BREAKING CHANGE

Since most tools will ensure a newline at the end of a file, approval
test is now adding this to allow copying approval results in diff tools
to work correctly. Please note that this will break all you previous
approvals that do not end with a newline!

This will show by your diff tool opening with two files that look
identical, but one actually has a newline at the end.

### Upgrade Path

We suggest you use ReporterByCopyMoveCommandForEverythingToClipboard()
as your Default Reporter to re-approve all your files.

## Namer handles multiple nested methods in a unit test

Previously if you had nested methods in your unit test, the names would
incorrectly identify the help method rather than the test method. This
is now fixed.
   2021-05-24 12:16:14 by Amitai Schleier | Files touched by this commit (2) | Package updated
Log message:
Update to 0.8.0. From the changelog:

- You can now set the approval file extensions via options:
  Options().for_file.with_extension(".md")
   2021-05-17 17:58:04 by Amitai Schleier | Files touched by this commit (2) | Package updated
Log message:
Update to 0.7.0. From the changelog:

- Date scrubbers are quite basic and only work with json-fied datetimes
- Verify now converts its input to string before verifying
   2021-05-10 11:00:02 by Amitai Schleier | Files touched by this commit (2) | Package updated
Log message:
Update to 0.6.0. From the changelog:

- You can now scrub your approval files
   2021-05-02 20:51:10 by Amitai Schleier | Files touched by this commit (3) | Package updated
Log message:
Update to 0.5.0. From the changelog:

- The reporter can now be passed into any verify call via options.
   2021-04-20 15:47:45 by Amitai Schleier | Files touched by this commit (2) | Package updated
Log message:
Update to 0.4.2. From the changelog:

- Easier to understand error messages (closes #97)