Approvaltests

Latest version: v12.0.0

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

Scan your dependencies

Page 6 of 17

7.0.0

Breaking Change

approval_utilities is becoming its own pypi package to allow usage in production code.

Fixes

You'll have some name spacing changes.

diff
- from approvaltests.utilities.logger ...
+ from approval_utilities.utilities.logger ...

6.2.0

You can now easily create a date scrubber.

For Example:

python
verify("created at 03:14:15", options=Options().with_scrubber(DateScrubber.get_scrubber_for("00:00:00")))

will produce

txt
created at <date0>

6.1.1

log_to_string, by default, now will log 1 string per thread. Allowing multithreaded testing

6.1.0

* [verify_simple_logger](https://github.com/approvals/ApprovalTests.Python/blob/main/docs/how_to/test_logs.md#1-with)
* [verify_storyboard](https://github.com/approvals/ApprovalTests.Python/blob/main/docs/reference/storyboard.md#verify_storyboard)
* use_utc_timezone() - allow easy testing of datetimes by forcing Timezone while in test

6.0.0

* [You can log parameter values on entrance and exit of a method](https://github.com/approvals/ApprovalTests.Python/blob/main/docs/how_to/log_method_parameter_values.md)

Breaking changes
use markers text has changed to reduce clutter, this will break previous tests.

5.13.0

Mechanisms for capturing differences that occur on CI and allowing those differences to coexist.

Page 6 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.