From 56221376270497ce7c38caf886cb32c34f41863f Mon Sep 17 00:00:00 2001 From: Nathalie Jonathan Date: Mon, 25 Nov 2024 11:28:20 -0800 Subject: [PATCH] Modified failing test Signed-off-by: Nathalie Jonathan --- test_opensearchpy/test_client/test_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_opensearchpy/test_client/test_utils.py b/test_opensearchpy/test_client/test_utils.py index a0cde64d..7dc5381e 100644 --- a/test_opensearchpy/test_client/test_utils.py +++ b/test_opensearchpy/test_client/test_utils.py @@ -154,9 +154,12 @@ def test_per_call_authentication(self) -> None: class TestMakePath(TestCase): def test_handles_unicode(self) -> None: + from urllib.parse import quote + id = "中文" self.assertEqual( - "/some-index/type/%E4%B8%AD%E6%96%87", _make_path("some-index", "type", id) + "/some-index/type/%E4%B8%AD%E6%96%87", + _make_path("some-index", "type", quote(id)), )