Approvaltests

Latest version: v12.0.0

Safety actively analyzes 625610 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 14 of 17

1.0.0

Verify(text) ensures a newline at the file
**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](configuration.mdhow-to-configure-a-default-reporter-for-your-system) 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.

0.8.0

You can now set the approval file extensions via options:
[Options().for_file.with_extension(".md")](https://github.com/approvals/ApprovalTests.Python/blob/master/docs/features.md#options---with-file-extension)

0.7.0

Date scrubbers are quite basic and only work with json-fied datetimes
Verify now converts its input to string before verifying

0.6.0

You can now scrub your approval files

0.5.0

The reporter can now be passed into any verify call via options.

more to come later.

0.4.2

closes 97

Page 14 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.