Special cases for doc-based APIs

This commit is contained in:
Honza Král
2019-12-22 16:32:49 +01:00
committed by Honza Král
parent 592372bc52
commit 4be0f72bd5
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -96,4 +96,4 @@ class TestClient(ElasticsearchTestCase):
def test_index_uses_put_if_id_is_not_empty(self):
self.client.index(index="my-index", id=0, body={})
self.assert_url_called("POST", "/my-index/_doc/0")
self.assert_url_called("PUT", "/my-index/_doc/0")