From 5c2836ad896cc500d6d239d830925c9c7baba77c Mon Sep 17 00:00:00 2001 From: Nick Crews Date: Wed, 2 Oct 2024 11:01:07 -0800 Subject: [PATCH] test: fixup email test after adjusting the ParsedEmail dataclass --- mismo/lib/email/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mismo/lib/email/_core.py b/mismo/lib/email/_core.py index 7fcaa728..020ce1c6 100644 --- a/mismo/lib/email/_core.py +++ b/mismo/lib/email/_core.py @@ -124,7 +124,7 @@ def f(level: MatchLevel): raw = ( ibis.case() - .when(e1 == e2, f(EmailMatchLevel.FULL_EXACT)) + .when(e1.full == e2.full, f(EmailMatchLevel.FULL_EXACT)) .when(damerau_levenshtein(e1.full, e2.full) <= 1, f(EmailMatchLevel.FULL_NEAR)) .when(e1.user == e2.user, f(EmailMatchLevel.USER_EXACT)) .when(damerau_levenshtein(e1.user, e2.user) <= 1, f(EmailMatchLevel.USER_NEAR))