Mike Dirolf
9edafa2167
make sure we're using utc
2009-02-25 17:42:03 -05:00
Mike Dirolf
33e563147e
use cursorInfo command instead of intr collection
2009-02-23 18:08:52 -05:00
Mike Dirolf
f7a1349f74
oops -a by accident
...
This reverts commit 28d2d0cbb0 .
2009-02-23 18:05:47 -05:00
Mike Dirolf
28d2d0cbb0
use cursorInfo command instead of intr collection
2009-02-23 18:05:20 -05: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
f167101a3e
changes to support python 2.4
2009-02-20 10:38:17 -05:00
Mike Dirolf
781b956394
make test independent of time it took to do explain
2009-02-20 09:14:57 -05:00
Mike Dirolf
1e0b09a432
support for long -> bson int in C encoder
2009-02-19 13:04:56 -05:00
Mike Dirolf
db25c8b0dd
url_encode and url_decode for ObjectIds
2009-02-18 14:46:09 -05:00
Mike Dirolf
376d6e0485
enable test
2009-02-18 13:34:09 -05:00
Mike Dirolf
c1bcc668ca
add md5 to gridfs files. one commented out test until the filemd5 command gets fixed
2009-02-18 12:03:58 -05:00
Mike Dirolf
724342623d
quick test for creating an index on binary data - jeff wants to be sure this works
2009-02-17 11:05:29 -05:00
Mike Dirolf
fc08abcbfa
make sure we fail fast on when we get a string that's not utf-8
2009-02-17 10:53:03 -05:00
Mike Dirolf
17788927fd
update test to keep up w/ change to error message
2009-02-12 15:30:04 -05:00
Mike Dirolf
8f56e2c227
use kwargs instead of options dict for pooling options
2009-02-12 15:20:41 -05:00
Mike Dirolf
35eaef2a1a
comment out non-deterministic tests
2009-02-12 14:51:16 -05:00
Mike Dirolf
e9e8a22431
increase test margins
2009-02-12 14:20:33 -05:00
Mike Dirolf
c781322ad0
compatible with python 2.5
2009-02-12 13:06:26 -05:00
Mike Dirolf
fdd451e243
multi-threaded pooling test
2009-02-12 12:17:40 -05:00
Mike Dirolf
48275e70da
test for a paired connection w/ connection pooling, some fixes
2009-02-12 12:17:39 -05:00
Mike Dirolf
802963df1a
TODO. note about pooling w/ auth
2009-02-12 12:17:21 -05:00
Mike Dirolf
7560be2ddb
a couple of tests
2009-02-12 12:17:21 -05:00
Mike Dirolf
35a34461b8
largely untested attempt at pooling as described on wiki. no auth support yet though
2009-02-12 12:17:21 -05:00
Mike Dirolf
ef429d86d4
add really basic test. revert to default pool_size of 1
2009-02-12 12:17:21 -05:00
Mike Dirolf
219b76f5e9
pooling. use same socket repeatedly for same thread. increment request_id atomically.
2009-02-12 12:16:54 -05:00
Mike Dirolf
9502726ae0
update hint test since db is getting smarter...
2009-02-12 11:37:03 -05:00
Mike Dirolf
6bd9edbe01
sanity check
2009-02-10 16:06:13 -05:00
Mike Dirolf
67da096b2b
test that killCursors is happening when expected
2009-02-10 15:48:51 -05:00
Mike Dirolf
dfb19383da
test and fix for a find returning only specific fields
2009-02-10 14:39:36 -05:00
Mike Dirolf
1008ec0583
add collection-level count() w/o having to do an empty find() first
2009-02-09 10:27:41 -05:00
Mike Dirolf
fc3ef96800
remove Mongo class.
...
this has been deprecated for some time, in favor of creating a Connection
instance and getting a Database instance from the connection. i'm removing
this before the release because i'd rather not have people get confused as
to why it is lying around.
the only real useful functionality left here that isn't recreated elsewhere
is auto-ref and auto-deref. this will probably get added back to the driver
as a SONManipulator at some point.
2009-02-09 10:10:03 -05:00
Mike Dirolf
77ae3fc2c3
make testing environment variables UPPERCASE_WITH_UNDERSCORES
2009-02-06 17:22:58 -05:00
Mike Dirolf
40afeaba27
subtype is unsigned, another test
2009-02-06 16:07:19 -05:00
Mike Dirolf
2d7d198b7c
add test that is failing for c decoder
2009-02-06 16:01:12 -05:00
Mike Dirolf
70e7e1a4fd
make test more lenient
2009-02-05 17:08:32 -05:00
Mike Dirolf
1b535bbbb2
hide to_dicts as _to_dicts
2009-02-05 15:40:07 -05:00
Mike Dirolf
1ffd0773e5
Revert "hopefully faster way to create SON"
...
unnecessary.
This reverts commit d1e2980046 .
2009-02-05 14:44:01 -05:00
Mike Dirolf
d1e2980046
hopefully faster way to create SON
2009-02-05 13:34:28 -05:00
Mike Dirolf
7e109664ac
drop_index by index specifier (in addition to index name)
2009-02-05 09:49:54 -05:00
Mike Dirolf
6f29ed27d7
create a collection even if no options are passed to create_collection
2009-02-03 14:31:57 -05:00
Mike Dirolf
63f882af99
added safe save. can't think of a good way to test this w/o depending on auth being on, which would break the rest of the tests
2009-02-03 11:57:04 -05:00
Mike Dirolf
37a5fe52e1
insert takes 'safe' argument. test and fix for update
2009-02-03 11:47:52 -05:00
Mike Dirolf
94645a115a
insert takes 'safe' argument. test and fix for update
2009-02-03 11:46:22 -05:00
Mike Dirolf
dc874b932d
default root collection: gridfs -> fs
2009-02-03 10:19:16 -05:00
Mike Dirolf
ff15368fcb
gridfs 1.0
2009-02-03 10:09:13 -05:00
Mike Dirolf
57941f9166
towards gridfs 1.0: support metadata
2009-02-02 17:39:30 -05:00
Mike Dirolf
7507898476
towards gridfs 1.0 -> change collection structure / default naming
2009-02-02 17:14:05 -05:00
Mike Dirolf
6e7d0ff1ef
support encoding/decoding binary w/ different subtypes
2009-02-02 10:08:01 -05:00
Mike Dirolf
beb8e7def4
test equality
2009-02-02 10:04:49 -05:00
Mike Dirolf
5c65676543
can initialize a new Binary instance with a subtype
2009-02-02 09:10:08 -05:00