Skip to content

Commit

Permalink
tmp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PicchiSeba committed Sep 10, 2024
1 parent eb908f4 commit 1453bdf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,30 @@ interactions:
status:
code: 200
message: OK
- request:
body: null
headers:
Content-Length:
- '0'
content-type:
- application/json
user-agent:
- elasticsearch-py/7.14.0a1 (Python 3.7.3)
x-elastic-client-meta:
- es=7.14.0p,py=3.7.3,t=7.14.0p,rq=2.21.0
method: DELETE
uri: http://elastic:9200/demo_elasticsearch_backend_res_partner_binding_fake_en_us
response:
body:
string: '{"acknowledged":true}'
headers:
content-length:
- '21'
content-type:
- application/json; charset=UTF-8
status:
code: 200
message: OK
- request:
body: null
headers:
Expand Down
2 changes: 2 additions & 0 deletions connector_elasticsearch/tests/test_connector_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def test_index_config_as_str(self):
def test_index_adapter_iter(self):
data = [{"id": "foo"}, {"id": "foo2"}, {"id": "foo3"}]
self.adapter.clear()
self.adapter.clear()
self.adapter.index(data)
if self.cassette.dirty:
# when we record the test we must wait for algolia
Expand All @@ -98,6 +99,7 @@ def test_index_adapter_iter(self):
def test_index_adapter_delete(self):
data = [{"id": "foo"}, {"id": "foo2"}, {"id": "foo3"}]
self.adapter.clear()
self.adapter.clear()
self.adapter.index(data)
if self.cassette.dirty:
# when we record the test we must wait for algolia
Expand Down

0 comments on commit 1453bdf

Please sign in to comment.