From ed278bced00b603c8e40f7fc3f3db4e498b7c92f Mon Sep 17 00:00:00 2001 From: Darren Lester Date: Fri, 13 Sep 2024 21:08:14 +0100 Subject: [PATCH] Change to test workflow --- app/backend_gcf/tests/test_main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/backend_gcf/tests/test_main.py b/app/backend_gcf/tests/test_main.py index fc54643..aececef 100644 --- a/app/backend_gcf/tests/test_main.py +++ b/app/backend_gcf/tests/test_main.py @@ -52,6 +52,7 @@ def test_detect_text_without_text(self): self.assertEqual(detected_text["text"], "") def test_translate_text(self): + """ Mock the response from the Translate API """ message = {"text": "Hola mundo", "src_lang": "es"} to_lang = "en" expected_translated_text = {"text": "Hello world", "src_lang": "es", "to_lang": "en"}