Manuel Jeckelmann
9f4b04ea0f
Fix querying an embedded document field by an invalid value ( #1440 )
2016-12-22 13:19:18 -05:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Stefan Wójcik
800f656dcf
remove unnecessary randomness in indexes tests ( #1423 )
2016-12-04 00:31:54 -05:00
Ollie Ford
d8d98b6143
Support Falsey primary_key
s ( #1354 )
2016-12-03 16:10:05 -05:00
Stefan Wójcik
3c455cf1c1
Improve health of this package ( #1409 )
...
* added flake8 and flake8-import-order to travis for py27
* fixed a test that fails from time to time depending on an order of a dict
* flake8 tweaks for the entire codebase excluding tests
2016-11-28 19:00:34 -05:00
iici-gli
e5b6a12977
Merge pull request #1 from MongoEngine/master
...
pull new changes from original
2016-09-04 23:43:04 -04:00
Bastien Gérard
df9ed835ca
fixes in unit tests
2016-07-02 23:01:36 +02:00
Shu Shen
3f30808104
Fix AttributeError when creating EmbeddedDocument
...
When an EmbeddedDocument is initialized with positional arguments, the
document attempts to read _auto_id_field attribute which may not exist
and would throw an AttributeError exception and fail the initialization.
This change and the test is based on the discussion in issue #681 and
PR #777 with a number of community members.
2016-04-07 15:18:33 -07:00
Gilb's
e34100bab4
Another attempt to fix random fails of test test_compound_key_dictfield
.
2016-03-18 23:43:23 +01:00
Gilb's
39eec59c90
Fix test failing randomly because of concurrency.
2016-03-18 19:45:34 +01:00
Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05:00
Emmanuel Leblond
a643933d16
Fix cascade delete mixing among collections
2016-01-30 11:59:55 +01:00
Bryan Bennett
6c9e1799c7
MongoEngine/mongoengine #1217 : Curry **kwargs through to_mongo on fields
2016-01-26 08:34:52 -05: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
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
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05: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
Gang Li
3fe93968a6
update test case for: Please recall fix on: Saving document doesn't create new fields in existing collection #620 #1126
2015-10-18 00:19:36 -04:00
Catstyle
ba0934e41e
added DynamicTest.test_reload_dynamic_field
2015-09-02 18:42:30 +02:00
Emmanuel Leblond
3ffaf2c0e1
Correct SaveConditionError involved tests
2015-07-15 11:59:29 +02:00
David Bordeynik
5334ea393e
fix-#842: Fix ignored chained options
2015-07-02 23:08:09 +03:00
Matthieu Rigal
0aeb1ca408
Various fixes again
2015-06-24 00:50:36 +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
2a3d3de0b2
CappedCollection max_size normalized to multiple of 256
2015-06-15 00:22:07 +02:00
Matthieu Rigal
915849b2ce
Implemented method to auto-generate non-collisioning auto_id names
2015-06-11 22:48:34 +02:00
mrigal
051cd744ad
added another test to proove we still do not handle all cases well
2015-06-11 22:47:10 +02:00
mrigal
53fbc165ba
added content of PR #688 with a test to proove it is a bit right
2015-06-11 22:47:10 +02:00
mrigal
1862bcf867
added test for abstract document without pk creation and adapted behaviour
2015-06-11 22:47:10 +02:00
Emmanuel Leblond
153c239c9b
Replace assertRaisesRegexp by assertRaises (python2.6 compatibility)
2015-06-11 14:36:51 +02:00
Emmanuel Leblond
4034ab4182
Clean save_condition exception implementation and related tests
2015-06-11 14:30:10 +02:00
Emmanuel Leblond
3e000f9be1
Raise error if save_condition fails #991
2015-06-11 14:29:42 +02:00
Matthieu Rigal
a0257ed7e7
Updated test to use new create_index method
2015-06-02 00:14:18 +02:00
Matthieu Rigal
f35d0b2b37
Added create_index method, warnings for drop_dups and a geohaystack test
2015-06-01 23:12:43 +02:00
Matthieu Rigal
283e92d55d
Added hashed index, a bit more of geo-indexes, possibility to give _cls and docs
2015-06-01 22:11:21 +02:00
Matthieu Rigal
f97db93212
corrected test for MongoDB 2.X
2015-05-07 12:48:25 +02:00
Matthieu Rigal
1005c99e9c
corrected index test for MongoDB 3+
2015-05-07 12:47:31 +02:00
mrigal
c5ed308ea5
comments update after having tested PyMongo 3.0.1
2015-05-07 12:47:31 +02:00
mrigal
f31f52ff1c
corrected test condition, depending on mongodb and not pymongo version
2015-05-07 12:47:30 +02:00
mrigal
48316ba60d
implemented global IS_PYMONGO_3
2015-05-07 12:47:29 +02:00
mrigal
ccbd128fa2
first adaptations after comments and find-outs
2015-05-07 12:47:29 +02:00
mrigal
36eedc987c
adapted index test to new explain output in pymongo3 and added comment to a possible pymongo3 bug
2015-05-07 12:47:29 +02:00
Stefan Wojcik
9bdc320cf8
dont send a "cls" option to ensureIndex (related to https://jira.mongodb.org/browse/SERVER-769 )
2015-05-06 11:25:45 +02:00
Matthew Ellison
06e4ed1bb4
Merge pull request #976 from seglberg/bugfix/#954-ref-field-subclass
...
Reflect Inheritance in Field's 'owner_document'
2015-04-30 09:22:15 -04:00
Eremeev Danil
a4f2f811d3
removed forgotten print
2015-04-30 09:33:19 +05:00
Eremeev Danil
ebaba95eb3
fixed same bug for nested List inside MapField, little code refactoring, added test for nested list and nested reference fields
2015-04-30 09:33:19 +05:00
elephant
7726be94be
fixed wrong _delta results on nested MapFields #931
2015-04-30 09:33:18 +05:00
Matthew Ellison
f2cbcea6d7
Unit Tests for #954 Fail on Exception, not Error
2015-04-29 14:26:05 -04:00