Skip to content

Commit

Permalink
Modified failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Nathalie Jonathan <[email protected]>
  • Loading branch information
nathaliellenaa committed Nov 25, 2024
1 parent cc18e36 commit 5622137
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_opensearchpy/test_client/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
)


Expand Down

0 comments on commit 5622137

Please sign in to comment.