Emmanuel Leblond
13897db6d3
Fix mongomock url prefix error during connection
2016-01-20 11:06:45 +01:00
Emmanuel Leblond
0284975f3f
Correct test_reload_of_non_strict_with_special_field_name for pymongo<2.9
2016-01-19 15:34:38 +01:00
George Macon
00221e3410
Allow sparse compound indexes
2015-12-09 18:38:28 -05:00
RussellLuo
23f07fde5e
Add support for mocking MongoEngine based on mongomock
...
Using `mongomock://` scheme in URI enables the mocking. Fix #1045 .
2015-12-06 11:08:00 +08:00
Omer Katz
b42b760393
Merge branch 'fix-reloading-strict' of https://github.com/paularmand/mongoengine into fix-reloading-strict and bumped version.
...
# Conflicts:
# AUTHORS
2015-11-30 12:13:47 +02:00
Paul-Armand Verhaegen
6133f04841
Manual merge conflicts in AUTHORS
2015-11-27 23:55:55 +01:00
Paul-Armand Verhaegen
3c18f79ea4
Added test for reloading of strict with special fields #1156
2015-11-27 23:45:25 +01:00
srossiter
b7b28390df
Added upsert_one method on BaseQuerySet and modified test_upsert_one
2015-11-24 12:46:38 +00:00
Stefan Wojcik
a7aead5138
re-create the cursor object whenever we apply read_preference
2015-11-23 10:46:52 -08:00
Ashley Whetter
f96e68cd11
Made type inheritance a validation check for abstract references
2015-11-23 13:20:35 +00:00
Ashley Whetter
013227323d
ReferenceFields can now reference abstract Document types
...
A class that inherits from an abstract Document type is stored in the database
as a reference with a 'cls' field that is the class name of the document being
stored.
Fixes #837
2015-11-23 13:20:35 +00:00
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05:00
Omer Katz
d92d41cb05
Merge pull request #1131 from noirbizarre/fix-instance-back-references
...
Fix instance back references
2015-11-08 12:14:37 +02:00
Axel Haustant
9fe99979fe
Fix tests on Python 2.6 (assertIsNotNone does not exists)
2015-10-19 18:04:15 +02:00
Axel Haustant
959740a585
Fix false positive test on _instance
2015-10-19 16:33:40 +02:00
reallistic
159b082828
Recursively create mongo query for embeddeddocument elemMatch
2015-10-18 16:34:24 -07:00
Emmanuel Leblond
903982e896
Merge pull request #1088 from touilleMan/bug-1058
...
Fix DictField with '_cls' field is converted to Document on access
2015-09-21 12:10:23 +02:00
Emmanuel Leblond
92b9cb5d43
Add drop_collection for test_subclass_field_query
2015-09-08 17:35:35 +02:00
Catstyle
ba0934e41e
added DynamicTest.test_reload_dynamic_field
2015-09-02 18:42:30 +02:00
Emmanuel Leblond
736fe5b84e
Fix unwanted dereference in DictField (issue #1058 )
2015-08-30 10:01:24 +02:00
Emmanuel Leblond
91aca44f67
Merge pull request #1093 from touilleMan/bug-1069
...
Replace disconnect with close method in pymongo
2015-08-10 18:40:59 +02:00
Emmanuel Leblond
96cfbb201a
Replace use close method in pymongo
2015-08-04 18:02:57 +02:00
Emmanuel Leblond
3ffaf2c0e1
Correct SaveConditionError involved tests
2015-07-15 11:59:29 +02:00
Emmanuel Leblond
a5fb009b62
Fix GenericReferenceField choices with DBRef and let it possible to set Document choice as string
2015-07-06 02:33:43 +02:00
David Bordeynik
5334ea393e
fix-#842: Fix ignored chained options
2015-07-02 23:08:09 +03:00
amitlicht
d7a2ccf5ac
Adding a test case for #1047 .
2015-06-30 15:03:06 +03:00
Matthieu Rigal
4dc158589c
Moved change to right place and added fancier test
2015-06-26 17:58:53 +02:00
emilecaron
02f61c323d
update test
2015-06-25 18:26:52 +00:00
emilecaron
e43fae86f1
reproduce RuntimeError
2015-06-25 15:37:15 +00:00
Matthieu Rigal
0aeb1ca408
Various fixes again
2015-06-24 00:50:36 +02:00
Vicky Donchenko
6bd9529a66
Allow to add custom metadata to fields
2015-06-23 16:25:56 +03:00
Matthieu Rigal
5c807f3dc8
Various test adjustments to improve stability independantly of execution order
2015-06-22 16:41:36 +02:00
Matthieu Rigal
40f6df7160
Adapted one more test for MongoDB < 3
2015-06-22 14:57:59 +02:00
Matthieu Rigal
95165aa92f
Logic and test adaptations for MongoDB < 3
2015-06-22 14:57:59 +02:00
Matthieu Rigal
d96fcdb35c
Fixed problem of ordering when using near_sphere operator
2015-06-22 14:57:58 +02:00
Matthieu Rigal
5efabdcea3
Added tests, documentation and simplified code
2015-06-22 14:57:58 +02:00
Matthieu Rigal
49c0c9f44c
Simplified lookup-field method, allowing dynamic lookup for more than two parts
2015-06-22 14:55:06 +02:00
Matthieu Rigal
ef5fa4d062
Merge pull request #1037 from MRigal/fix/1008-delete-returns-none-allowed
...
Added test and fix for delete with write_concern w:0
2015-06-22 14:50:04 +02:00
Matthieu Rigal
d0b749a43c
Made test explicit with an assert
2015-06-21 13:02:59 +02:00
Matthieu Rigal
bcc4d4e8c6
Added test and fix for delete with write_concern w:0
2015-06-21 03:40:45 +02:00
Breeze.kay
41bff0b293
remove testcase:test_signals_with_switch_sharding_db() and fix code style error for pull#1020
2015-06-21 09:32:31 +08:00
Breeze.kay
dfc7f35ef1
add testcase and changelog for pull:#1020 'improve _created status when switch collection and db'
2015-06-19 15:40:05 +08:00
Stefan Wojcik
dd095279c8
aggregate_sum/average + unit tests
2015-06-18 11:01:37 -07:00
Matthieu Rigal
2a3d3de0b2
CappedCollection max_size normalized to multiple of 256
2015-06-15 00:22:07 +02:00
Matthieu Rigal
b124836f3a
Merge pull request #936 from MRigal/fix/712-avoid-crash-looping-on-corrupted-obj-id
...
changed ObjectIdField to_python() method to avoid crash, issue 712
2015-06-14 23:31:22 +02:00
Matthieu Rigal
7714cca599
Removed get_or_create() method, deprecated since 0.8
2015-06-12 20:51:59 +02:00
Matthieu Rigal
42511aa9cf
Merge pull request #1028 from MRigal/fix/652-url-field-validation-too-restrictive-use-django-validation
...
Updated URL and Email regex validators, added schemes to url validator
2015-06-12 20:47:58 +02:00
Matthieu Rigal
ace2a2f3d1
Merge pull request #1027 from MRigal/fix/530-combining-only-and-save-deletes-embedded-fields-value-with-default
...
Added passing test to prove save and only problem was fixed
2015-06-12 20:40:51 +02:00
Matthieu Rigal
4c1496b4a4
Updated URL and Email field regex validators, added schemes arg to urlfield
2015-06-12 13:10:36 +02:00
Matthieu Rigal
eec876295d
Added passing test to prove save and only problem was fixed
2015-06-12 12:13:28 +02:00