Commit Graph

35 Commits

Author SHA1 Message Date
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
A. Jesse Jiryu Davis
85e80bcc8b PYTHON-1308 - Finish deprecating SON manipulators 2017-08-01 10:19:48 -04:00
Bernie Hackett
e89ba4bcd0 PYTHON-1026 - Remove test assumption about primary host 2016-09-21 11:15:43 -07:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
A. Jesse Jiryu Davis
2f9d24ade6 PYTHON-525 Reimplement MongoClient to use Cluster.
Replace MongoClient with an implementation that relies on Cluster and Server. The new MongoClient takes over MongoReplicaSetClient's responsibilities.

Authentication, secondary-pinning, and Mongos high-availability are broken and will be reimplemented in a future commit. RS tests are temporarily disabled.
2014-08-28 16:57:57 -04:00
Luke Lovett
4fa96c6c2e PYTHON-683 Separate unit tests and integration tests in the pymongo test suite.
Raise SkipTest in tests that require a connection to MongoDB when none is available.
2014-06-30 17:42:29 +00:00
Luke Lovett
26fb43cf78 PYTHON-681 Reuse MongoClient whenever possible in the tests 2014-05-21 20:41:18 +00:00
Luke Lovett
141200083e PYTHON-680 Stop using nose in favor of pure unittest/unittest2 2014-04-25 22:57:33 +00:00
A. Jesse Jiryu Davis
2fa1750b07 Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
A. Jesse Jiryu Davis
9ce9004733 Unused import 2013-10-17 16:41:21 -04:00
A. Jesse Jiryu Davis
f1f7b14bf6 Allow MongoClients to be GC'ed after test runs.
Work around http://bugs.python.org/issue11798 to reduce max connection count during tests.
2013-08-27 09:00:50 -04:00
A. Jesse Jiryu Davis
c758efcb34 Rename test_connection -> test_client, test_replica_set_connection -> test_replica_set_client PYTHON-451 2013-02-11 21:33:55 -05:00
A. Jesse Jiryu Davis
d35bec12e5 Tests use MongoClient instead of Connection PYTHON-451 2013-02-11 20:57:17 -05:00
Bernie Hackett
2f3ce13bf4 Fix test_id_shuffling PYTHON-441
SON equality is now order sensitive.
2012-11-23 09:56:10 -08:00
behackett
0ee7170cc2 It's 2012... 2012-04-19 12:40:38 -07:00
behackett
12592be1fe Python 3 unittest changes PYTHON-84. 2012-03-28 11:53:47 -07:00
behackett
2d21ba9376 Replace deprecated unittest assert method aliases.
assert_ -> assertTrue
assertEquals -> assertEqual

This is needed to clean up deprecation warnings
in python >= 3.2
2012-03-16 17:20:21 -07:00
Mike Dirolf
9c182809f3 Create a separate bson package PYTHON-60
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00
Mike Dirolf
3d7240e57f It's 2010! 2010-01-30 10:48:26 -05:00
Mike Dirolf
99f08e541e DEPRECATING method style access for several methods:
Connection.host() and port(), Database.connection() and name(),
and Collection.database(), name() and full_name(). Use attribute/property
style access for all of these instead now.
2009-12-15 17:04:24 -05:00
Mike Dirolf
b4cb9be0d3 Add database support to DBRefs (as ) 2009-11-10 14:54:39 -05:00
Mike Dirolf
90beef7b20 minor: more PEP 8 2009-06-05 16:54:02 -04:00
Mike Dirolf
8578b20e64 handle dbrefs in the bson encoder rather than as a layer on top 2009-03-18 10:31:47 -04:00
Mike Dirolf
7ddbdc5442 add basic auto-ref support 2009-03-17 13:04:50 -04:00
Mike Dirolf
055bd7f31c test that already passes 2009-03-17 11:26:31 -04:00
Mike Dirolf
7bbb4a5133 python 2.3 support
mostly not using unittest.assertTrue and assertFalse.
also not using decorator syntax, and some missing built-ins (sorted, etc.)
2009-02-20 14:35:21 -05:00
Mike Dirolf
114f2f2e7c use database pymongo_test instead of test for testing 2009-01-29 14:14:54 -05:00
Mike Dirolf
dab986f3da change sys.path unconditionally to work around people who have the egg installed 2009-01-28 15:32:42 -05:00
Mike Dirolf
eb5af47c57 don't append - insert at beginning 2009-01-28 15:09:24 -05:00
Mike Dirolf
ef63bbe81e add '' to sys.path so test files can be run as python test/test_whatever.py 2009-01-28 14:44:35 -05:00
Mike Dirolf
8e7952ae6d _id goes first 2009-01-26 09:33:07 -05:00
Mike Dirolf
84acf3b529 _id can be anything. this hasn't been well tested yet. 2009-01-23 17:34:27 -05:00
Mike Dirolf
88a62b0c3e license 2009-01-22 15:10:00 -05:00
Mike Dirolf
d6c0ec39a3 create package pymongo and move all pymongo related modules there 2009-01-22 10:44:26 -05:00
Mike Dirolf
154c370985 add son_manipulator module and some basic manipulators 2009-01-20 10:42:01 -05:00