From 5e66692effd77e8483e68d92d3714c235f9949ed Mon Sep 17 00:00:00 2001 From: SuHun Han Date: Tue, 9 Jun 2020 00:23:30 +0900 Subject: [PATCH] test(client): fix a test for special cases where google returns many kinds of results --- tests/test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index 4e578eb..87f40d0 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -91,7 +91,7 @@ def test_src_in_special_cases(translator): result = translator.translate(*args) - assert result.text == 'Hello' + assert result.text in ('Hello', 'Hi,') def test_src_not_in_supported_languages(translator):