Approvaltests

Latest version: v14.3.0

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

Scan your dependencies

Page 14 of 18

3.1.1

3.1.0

You can now verify html and it will pretty print it. This adds a pip dependency on beautiful soup (bs4)

3.0.0

Breaking Change

verify_file("sample.xml") will produce an approval file with an .xml extension

verify_file("sample.xml",options=Options().for_file.with_extension(".json")) will produce an approval file with an .json extension

2.2.0

Added support for [DiffEngineTray](https://github.com/VerifyTests/DiffEngine/blob/main/docs/tray.md)

2.1.0

verify_as_json` can now take an optional parameter `deserialize_json_fields` which if True will produce nicer formatted output.

json
{
"type": "dictionary",
"value": "{\"a\": 1, \"b\": 2, \"c\": 3}"
}


vs

json
{
"type": "dictionary",
"value": {
"a": 1,
"b": 2,
"c": 3
}
}

2.0.0

Create regex scrubber
Renamed `scrub_with_regex` to `create_regex_scrubber`.
It can now take either a `str` or a `Callable[[int], str]`

Going forward, functions that return scrubber will start with `create` while functions that scrub directly will start with `scrub`

Page 14 of 18

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.