Commit Graph

18 Commits

Author SHA1 Message Date
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Shane Harvey
3e778334e7 PYTHON-1299 Remove test logic for MongoDB <2.6. 2017-09-29 12:09:24 -07:00
A. Jesse Jiryu Davis
3cba982db9 PYTHON-1332 - Test lsid with all commands 2017-09-29 14:52:26 -04:00
Anthony Sottile
41be71f09f Trim trailing whitespace 2017-08-31 22:26:39 -07:00
Bernie Hackett
e1850d8abe PYTHON-988 - Deprecate cursor managers and kill_cursors 2016-06-17 10:08:14 -07:00
aherlihy
5396444f3c PYTHON-978 - Use killCursors command 2015-11-18 12:57:48 -08:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
Bernie Hackett
4fd6f8a0b1 PYTHON-854 max_pool_size -> maxPoolSize
With this change the max_pool_size named parameter to
MongoClient is removed. It is replaced by the maxPoolSize
MongoDB URI option, which can be passed in a URI, or as a
keyword argument to MongoClient.
2015-03-09 10:08:13 -07:00
Bernie Hackett
3f3b6bedfc PYTHON-846 - Database.connection -> Database.client 2015-02-25 11:57:39 -08:00
Bernie Hackett
30af616009 PYTHON-821 - Migrate most tests to new the CRUD API. 2015-02-13 08:46:43 -08:00
A. Jesse Jiryu Davis
47a736da89 PYTHON-799 Avoid deadlock in Cursor destructor with PyPy.
Use a background thread to periodically close destroyed
cursors instead of killing them directly from Cursor.__del__.
2015-01-05 15:21:51 -05:00
A. Jesse Jiryu Davis
79dd0e4758 Update cursor management for PyMongo 3.0.
CursorManager was deprecated in PYTHON-323. Now we undeprecate it, but we remove
BatchCursorManager. MongoClient.set_cursor_manager now accepts None in addition
to accepting a CursorManager subclass. CursorManager.close now requires, and
MongoClient.kill_cursors accepts, an "address" parameter.
2014-12-03 17:16:11 -05:00
A. Jesse Jiryu Davis
0a246d2033 Standardize how tests construct MongoClients. 2014-10-30 19:36:59 -04:00
A. Jesse Jiryu Davis
c5eae2f99f Use replica set connection in tests wherever possible.
Most tests now inherit from IntegrationTest and use self.client for all MongoDB
operations. self.client is now a replica set connection if an RS is available,
otherwise a connection to a standalone.
2014-10-07 13:36:52 -04:00
A. Jesse Jiryu Davis
bfbfd3a866 TestCursorManager need not inherit from TestRequestMixin. 2014-09-24 10:16:16 -04:00
A. Jesse Jiryu Davis
98afef5871 Replace "Cluster" term with "Topology".
The Server Discovery And Monitoring Spec has replaced the term "cluster"
with "topology", since "cluster" in MongoDB terminology should be reserved
for sharded clusters. "Topology" describes a single server, replica set, or a
set of mongoses.

The previous commit replaced "cluster" with "topology" in file names. Here
I replace the term in class and variable names.
2014-09-17 22:32:43 -04:00
A. Jesse Jiryu Davis
9d01f6c994 Skip kill_cursors tests for mongos before 2.4.7. 2014-08-28 16:57:57 -04:00
A. Jesse Jiryu Davis
c06b3bdb94 Undeprecate MongoClient.set_cursor_manager. 2014-08-28 16:49:33 -04:00