Approvaltests

Latest version: v12.0.0

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

Scan your dependencies

Page 9 of 17

5.4.2

Pytest Async test no longer throw naming exceptions

5.4.1

There should be no visible effects from this release

5.4.0

Custom Formatters
You can now `register_formatter` that will match types of data, and print prettier output using `verify(data)`

**note:** we also registered a formatter for `argparse.Namespace`

For Example, the following approval will contain 42:
python
class DeepThought(FormatWrapper):
def is_match(self, data):
return True

def wrap(self, data):
return 42

register_formatter(DeepThought())


def test_register_formatter() -> None:
verify("What is the answer to life, the universe and everything?")

5.3.3

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

5.3.2

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

5.3.1

The following dependencies are only needed if used
- BeautifulSoup4 in verify_html
- allpairspy in pairwise approvals
- pyperclip in clipboard reporter

Page 9 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.