Commit Graph

111 Commits

Author SHA1 Message Date
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
Mike Dirolf
d9bcf5410c update hint tests - can only hint on indexed fields 2009-01-30 16:53:38 -05:00
Mike Dirolf
9ba81bac47 username:mongo:password 2009-01-30 15:23:12 -05:00
Mike Dirolf
e0fa517744 move constants to pymongo root. update docs. add documentation for the pymongo module itself. 2009-01-30 14:54:50 -05:00
Mike Dirolf
2a4fba7aa4 eval() 2009-01-30 12:22:13 -05:00
Mike Dirolf
796c49a34b paired repr 2009-01-30 10:31:59 -05:00
Mike Dirolf
f20e369174 more tests 2009-01-29 17:36:30 -05:00
Mike Dirolf
3ae89bc1d5 test a regex find 2009-01-29 15:45:10 -05:00
Mike Dirolf
7a631ff901 where() for cursors 2009-01-29 15:08:01 -05:00
Mike Dirolf
114f2f2e7c use database pymongo_test instead of test for testing 2009-01-29 14:14:54 -05:00
Mike Dirolf
fca52eaf96 remove spurious is_binary method 2009-01-29 10:54:00 -05:00
Mike Dirolf
a64b74533b new code class Code 2009-01-29 10:53:00 -05:00
Mike Dirolf
296041f828 limit generated codepoints to appease hudson 2009-01-29 09:29:55 -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
54b73ea860 add this here too... 2009-01-28 14:59:45 -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
9e94f219b3 starting work on pairing - will connect to master when given a pair. but doesn't handle auto-reconnection yet 2009-01-28 13:12:20 -05:00
Mike Dirolf
6074ce79da move error checking to _command 2009-01-28 09:45:39 -05:00
Mike Dirolf
830c6d4eb1 more useful return 2009-01-27 17:51:18 -05:00
Mike Dirolf
b98b53671c 'private'-ize 2009-01-27 17:49:52 -05:00
Mike Dirolf
1964985038 find the master, with a test 2009-01-27 17:39:33 -05:00
Mike Dirolf
f9117a1bd0 a couple of helpers for common gridfs use cases - the more raw operations can be done by using GridFile directly 2009-01-27 10:21:15 -05:00
Mike Dirolf
b4e600c19f buffered reads 2009-01-27 09:07:12 -05:00
Mike Dirolf
7a1ec4d09f simple test for mode based exceptions 2009-01-26 18:28:09 -05:00
Mike Dirolf
ee04688f54 test w/ small chunkSize (just a single byte) 2009-01-26 18:19:59 -05:00
Mike Dirolf
029e6538f7 test a file that spans more than just one chunk 2009-01-26 18:00:04 -05:00
Mike Dirolf
8884499512 more tests that already pass 2009-01-26 17:52:21 -05:00
Mike Dirolf
ad2967eaca test mode and closed properties 2009-01-26 17:35:59 -05:00
Mike Dirolf
36cfc51cab test properties 2009-01-26 17:33:45 -05:00
Mike Dirolf
c95f9823b0 test getters, fix chunk_size 2009-01-26 17:19:01 -05:00
Mike Dirolf
0d4f6acde1 reads on non-matching file specifiers raise IOError 2009-01-26 17:13:47 -05:00
Mike Dirolf
b28d20f8b1 more tests and a fix 2009-01-26 17:05:08 -05:00
Mike Dirolf
82b105c481 more tests 2009-01-26 17:02:15 -05:00
Mike Dirolf
cd86a107ea toward a gridfs module 2009-01-26 16:19:06 -05:00
Mike Dirolf
fe9e805c79 move dereferencing to database class 2009-01-26 13:21:00 -05:00
Mike Dirolf
8e7952ae6d _id goes first 2009-01-26 09:33:07 -05:00
Mike Dirolf
c48456ce36 test that _id can be anything 2009-01-23 17:46:09 -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
aba3a377a8 add a test that saving strings means retrieving unicode 2009-01-23 17:00:43 -05:00