Commit Graph
6 Commits
Author SHA1 Message Date
Nick LangandGitHub f3f7266c1f better logic to handling unicode and chunking. (#870)
Chunking was looking at the length of a string but not accounting for the
byte length. closes #716
2018-11-26 10:58:47 -07:00
Nick LangandGitHub bafe65987c Fixing flaky test wrt mock and threading. (#875)
* Fixing flaky test wrt mock and threading.

Mock is apparetnly not threadsafe, and as a result will sometimes
cause tests to fail when we want to count the number of times a
mock function is called.

I've replaced the mock function with a side_effect, which allows for
locking and incrementing manually.

* put threading.Lock in globals
2018-11-26 10:10:12 -07:00
Honza Král 7729c3048f Python2 compatibility in tests 2015-10-11 23:59:26 +02:00
Honza Král 9d415fadef Adding tests for indexing strings via bulk helpers 2015-10-11 05:00:14 +02:00
Honza Král 1378073e2d Moved helpers unit tests to test_helpers 2015-10-11 04:50:31 +02:00
Honza Král 12c2a466e1 Basic tests for parallel_bulk 2015-10-11 04:47:02 +02:00