python-devtools icon indicating copy to clipboard operation
python-devtools copied to clipboard

Add multi line string option to insert_assert

Open NiallRees opened this issue 2 years ago • 1 comments

It is sometimes desirable to use a multi line string to improve readability rather than using \n, it would be great if insert_assert supported this as a kwarg to replace with a multi line string.

NiallRees avatar Sep 11 '23 12:09 NiallRees

You might be interested in https://github.com/15r10nk/inline-snapshot which offers similar functionality to insert_assert and uses multiline strings when it thinks it should: https://15r10nk.github.io/inline-snapshot/#code-generation

alexmojaki avatar Feb 25 '24 20:02 alexmojaki