From 50d75b3822dfac861d1abce42b89ad34e1c74bd8 Mon Sep 17 00:00:00 2001 From: Itxaso Aizpurua Date: Sat, 8 Oct 2022 08:38:52 +0200 Subject: [PATCH] test now testing verbose --- testing/test_assertion.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index e253144a2..27bb69269 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -787,6 +787,13 @@ class TestAssert_reprcompare: f"+ {str(left)}", ] + expl = callequal(left, right, verbose=2) + assert expl == [ + "\"'hyv\\\\xe4'\" == \"'hyva\\\\u0308'\"", + f"- {str(right)}", + f"+ {str(left)}", + ] + class TestAssert_reprcompare_dataclass: def test_dataclasses(self, pytester: Pytester) -> None: