Approvaltests

Latest version: v11.2.1

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

Scan your dependencies

Page 1 of 17

11.2.1

11.2.0

Utilities to make it much easier to rapidly develop tests
[Read the How To](https://github.com/approvals/ApprovalTests.Python/blob/main/docs/how_to/inline_approvals_with_parse_input.md)

11.1.3

Fixed a bug with inline approvals where the input could not have preceding whitespace

11.1.2

- options.inline can now be created outside of the test method
- renamed `quiet_reporter` to `report_quietly`
- kept link to old name for backwards compatibility
- fixed bug in `quiet_reporter` and `InlineReporter` where they were throwing the wrong exception on failure

11.1.1

fixed a bug where inline was working with pytest but not unittest

11.1.0

You can now do this:
python
def test_with_labeled_input(self) -> None:
verify_all_combinations_with_labeled_input(
lambda a,b: a+b+1,
arg1=(1, 3),
arg2=(2, 4),
)


and it will produce:

text
(arg1: 1, arg2: 2) => 4
(arg1: 1, arg2: 4) => 6
(arg1: 3, arg2: 2) => 6
(arg1: 3, arg2: 4) => 8

Page 1 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.