syrupy snapshots fail after fastapi update even though JSON looks identical
syrupy 4.6, pytest 8. We use assert response == snapshot for API JSON responses. After upgrading fastapi from 0.108 to 0.110, forty snapshots fail. The JSON looks identical to me. The diff shows escaped unicode changed from \u00e9 to the literal character. Is there a setting to normalize this so we don't churn snapshots on every library upgrade? It happened right after the fastapi bump so I'm fairly sure that's the cause, but I'd rather fix the comparison than regenerate forty files every time something upstream changes its encoder.
4 replies