mirror of
https://github.com/element-hq/synapse.git
synced 2026-09-17 03:44:29 +00:00
This also changes the rendering of our custom helper `assertIncludes`. Spawns from https://github.com/element-hq/synapse/pull/20019#discussion_r3676539092 This PR hijacks `assertEqual` in order to substitute in our own error rendering logic for set inequality. (The motivation to do this is that we should just render sets in our preferred style by default, without having to think about `assertIncludes` with the `exact` flag or risk forgetting it.) The error rendering for `assertIncludes` is adapted to make it reusable in our `assertEqual` and to make it clearer _to me_ (I found it a bit jarring that `+` was used more like a tick, when in other test frameworks I expect to see that as a diff marker). I have tried to make it as clear as I could without being cryptic. --------- Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>