diff --git a/test_opensearchpy/test_server/test_clients.py b/test_opensearchpy/test_server/test_clients.py index 69262b5e..5fb5d96d 100644 --- a/test_opensearchpy/test_server/test_clients.py +++ b/test_opensearchpy/test_server/test_clients.py @@ -64,19 +64,18 @@ def test_with_doesnt_break_client(self) -> None: class Testfailingtest(OpenSearchTestCase): - -def Testfailingtest(self) -> None: -# Create index with specified settings -self.client.indices.create( - index='test', - body={ - "settings": { - "index.number_of_shards": 2, - "index.number_of_replicas": 1 - } - } -) - -# Perform force merge operation and verify total shards -response = self.client.indices.forcemerge(index='test', primary_only=True) -assert response['_shards']['total'] == 2 + def Testfailingtest(self) -> None: + # Create index with specified settings + self.client.indices.create( + index='test', + body={ + "settings": { + "index.number_of_shards": 2, + "index.number_of_replicas": 1 + } + } + ) + + # Perform force merge operation and verify total shards + response = self.client.indices.forcemerge(index='test', primary_only=True) + assert response['_shards']['total'] == 2