From 36a71e713f7affbc782c9a7a143d01dd3135bc6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Jan 2022 21:30:07 +0530 Subject: [PATCH] Update test for new dictionary --- src/calibre/spell/dictionary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/spell/dictionary.py b/src/calibre/spell/dictionary.py index 5315c180e9..2a5a598aae 100644 --- a/src/calibre/spell/dictionary.py +++ b/src/calibre/spell/dictionary.py @@ -447,8 +447,8 @@ def find_tests(): def test_dictionaries(self): for w in 'recognized one-half one\u2010half'.split(): self.ar(w) - d = load_dictionary(get_dictionary(parse_lang_code('es'))).obj - self.assertTrue(d.recognized('Achí')) + d = load_dictionary(get_dictionary(parse_lang_code('es-ES'))).obj + self.assertTrue(d.recognized('Ahí')) self.assertIn('one\u2010half', self.suggestions('oone\u2010half')) self.assertIn('adequately', self.suggestions('ade-quately')) self.assertIn('magic. Wand', self.suggestions('magic.wand'))