@@ -29,9 +29,8 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from opensearchpy.client.utils import _bulk_body, _escape, _make_path, query_params
|
||||
from opensearchpy.compat import PY2
|
||||
|
||||
from ..test_cases import SkipTest, TestCase
|
||||
from ..test_cases import TestCase
|
||||
|
||||
|
||||
class TestQueryParams(TestCase):
|
||||
@@ -161,14 +160,6 @@ class TestMakePath(TestCase):
|
||||
"/some-index/type/%E4%B8%AD%E6%96%87", _make_path("some-index", "type", id)
|
||||
)
|
||||
|
||||
def test_handles_utf_encoded_string(self):
|
||||
if not PY2:
|
||||
raise SkipTest("Only relevant for py2")
|
||||
id = "中文".encode("utf-8")
|
||||
self.assertEqual(
|
||||
"/some-index/type/%E4%B8%AD%E6%96%87", _make_path("some-index", "type", id)
|
||||
)
|
||||
|
||||
|
||||
class TestEscape(TestCase):
|
||||
def test_handles_ascii(self):
|
||||
|
||||
Reference in New Issue
Block a user