add test coverage for no_cursor_timeout to support recent fix

This commit is contained in:
Bastien Gérard
2019-09-11 21:53:30 +02:00
parent 47f8a126ca
commit 7d94af0e31
2 changed files with 12 additions and 1 deletions

View File

@@ -1576,6 +1576,7 @@ class BaseQuerySet(object):
if self._snapshot:
msg = "The snapshot option is not anymore available with PyMongo 3+"
warnings.warn(msg, DeprecationWarning)
cursor_args = {}
if not self._timeout:
cursor_args["no_cursor_timeout"] = True