Saved snapshot fails to match if repr ends with newline #925
Labels
bug
Something isn't working
good first issue
Good for newcomers
serializer
Syrupy serializer question
Describe the bug
It appears that if you snapshot test against an object whose repr ends in a newline, then the test will fail even after running
--snapshot-update
To reproduce
Then run
pytest test_syrupy.py --snapshot-update
thenpytest teest_syrupy.py
The test fails with the following output
Expected behavior
I expect the test to pass
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: