Skip to content

Commit 466ac72

Browse files
marshallmainhonzakral
authored andcommitted
use side effect call count instead of mock call count
1 parent faef248 commit 466ac72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_elasticsearch/test_helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_all_chunks_sent(self, _process_bulk_chunk):
3535
actions = ({"x": i} for i in range(100))
3636
list(helpers.parallel_bulk(Elasticsearch(), actions, chunk_size=2))
3737

38-
self.assertEquals(50, _process_bulk_chunk.call_count)
38+
self.assertEquals(50, mock_process_bulk_chunk.call_count)
3939

4040
@SkipTest
4141
@mock.patch(

0 commit comments

Comments
 (0)