Skip to content

Commit 0cc33bb

Browse files
oehrleinsafwanrahman
authored andcommitted
Fixed test_custom_generate_id_is_called test
1 parent 79218c8 commit 0cc33bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,5 +485,5 @@ def generate_id(cls, article):
485485

486486
# Get the data from the elasticsearch low level API because
487487
# The generator get executed there.
488-
data = json.loads(mock_bulk.call_args[0][0].split("\n")[0])
488+
data = json.loads(mock_bulk.call_args[1]['body'].split("\n")[0])
489489
assert data["index"]["_id"] == article.slug

0 commit comments

Comments
 (0)