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), )
Breaking Change verify_all with an empty head will no longer add 2 blank lines at the beginning of the file
10.4.0
This allows for inline approvals to get the inputs from the approved docstring. (more coming soon) Here's an example where the inputs (a,b,c) are gathered from the docstring:
from approvaltests.inline.parse_docstring import parse_docstring
def test_uppercase(): """ a -> A b -> B c -> C """ verify("\n".join([ f"{a} -> {a.upper()}" for a in parse_docstring()]), options=Options().inline())