From c7a263a4995e0a6bb5fe19f41da453c2b8835e16 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Tue, 1 Feb 2022 14:14:33 -0800 Subject: [PATCH] fix cspell ignore per daniel's recommendation --- .vscode/cspell.json | 6 ++++++ .../azure-ai-translation-document/tests/test_translation.py | 2 +- .../tests/test_translation_async.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index a267e7df82b..fc87ff5f378 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -268,6 +268,12 @@ "words": [ "Phong" ] + }, + { + "filename": "sdk/translation/azure-ai-translation-document/tests/*.py", + "words": [ + "essai" + ] } ], "allowCompoundWords": true diff --git a/sdk/translation/azure-ai-translation-document/tests/test_translation.py b/sdk/translation/azure-ai-translation-document/tests/test_translation.py index 4fa41bbb900..910e25d9313 100644 --- a/sdk/translation/azure-ai-translation-document/tests/test_translation.py +++ b/sdk/translation/azure-ai-translation-document/tests/test_translation.py @@ -549,6 +549,6 @@ def test_translation_with_glossary(self, client): with open(document, "rb") as fd: translated = fd.readline() - # cSpell:ignore essai + assert b'essai' in translated # glossary worked os.remove(document) diff --git a/sdk/translation/azure-ai-translation-document/tests/test_translation_async.py b/sdk/translation/azure-ai-translation-document/tests/test_translation_async.py index 2f70624db1b..00efaf1efc3 100644 --- a/sdk/translation/azure-ai-translation-document/tests/test_translation_async.py +++ b/sdk/translation/azure-ai-translation-document/tests/test_translation_async.py @@ -548,6 +548,6 @@ async def test_translation_with_glossary(self, client): with open(document, "rb") as fd: translated = fd.readline() - # cSpell:ignore essai + assert b'essai' in translated # glossary worked os.remove(document)