Bastien Gérard
dca837b843
Add suport for Mongo 3.4 (travis, fix tests)
2019-02-26 21:38:23 +01:00
Bastien Gérard
6d353dae1e
refactored iteritems/itervalues to improve 2/3 compat #2003
2019-02-18 22:13:05 +01:00
Bastien Gérard
9b6c972e0f
renamed decorator needs_mongodb_x in test + fixes ref to mongo 2.4 from travis files
2018-10-02 22:03:55 +02:00
Bastien Gérard
96f0919633
- Fixed tests to allow support of MongoDB 3.2
...
- Replaced MongoDB 2.4 tests in CI by MongoDB 3.2
2018-09-30 21:59:15 +02:00
Bastien Gérard
003827e916
rewrote some poorly written assertions like: assertTrue(isinstance(a, b)) assertTrue(a==b) assertTrue(a!=b) assertTrue(a in b)
2018-09-06 21:47:06 +02:00
Ephraim Berkovitch
398964945a
Document.objects.create should raise NotUniqueError upon saving duplicate primary key ( #1485 )
2017-02-27 09:42:44 -05:00
Omer Katz
2bedb36d7f
Test against multiple MongoDB versions in Travis ( #1074 )
2017-02-26 14:52:43 -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
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
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
George Macon
00221e3410
Allow sparse compound indexes
2015-12-09 18:38:28 -05: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
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
David Bordeynik
25298c72bb
Fix #877 : Fix tests for pymongo 2.8+
2015-02-15 10:02:22 +02:00
Matthew Ellison
db36d0a375
Ensure Indexes before Each Save
...
- Rely on caching within the PyMongo driver to provide lightweight calls
while indices are cached.
- Closes MongoEngine/mongoengine#812 .
2014-12-04 08:45:15 -05:00
Matthew Ellison
bc53dd6830
Generate Unique Indices for Lists of EmbeddedDocs
...
- Unique indices are now created in the database for EmbeddedDocument
fields when the EmbeddedDocument is in a ListField
- Closes Issue #358
2014-11-19 22:37:27 -05:00
DavidBord
46da918dbe
fix-#733: index_cls is ignored when deciding to set _cls as index prefix
2014-08-17 11:19:18 +03:00
Clay McClure
74bd7c3744
Include preliminary support for text indexes
...
To index a text field, prefix the field name with `$`, as in `$title`.
2014-06-27 14:48:32 -04:00
Ross Lawley
94e177c0ef
Allow strings to be used in index creation #677
2014-06-27 12:49:31 +01:00
Ross Lawley
708dbac70e
Depending on pymongo it might raise a TypeError or ValueError
2014-01-14 10:09:11 +00:00
Ross Lawley
0c43787996
Fixed indexing - turn off _cls ( #414 )
2013-07-30 11:43:52 +00:00
Ross Lawley
e58b3390aa
Removed import with from future
2013-05-01 08:48:14 +00:00
Ross Lawley
9c1cd81adb
Add support for new geojson fields, indexes and queries ( #299 )
2013-04-30 14:46:23 +00:00
Ross Lawley
b0c1ec04b5
Improvements to indexing documentation ( #130 )
2013-04-29 07:38:31 +00:00
Ross Lawley
e4f38b5665
Fragile test fix
2013-04-22 16:46:59 +00:00
Ross Lawley
c16e6d74e6
Updated connection to use MongoClient ( #262 , #274 )
2013-04-22 15:07:15 +00:00
Ross Lawley
0cbd3663e4
Updated tests
2013-01-28 13:40:28 +00:00
Ross Lawley
fff27f9b87
Added support for compound primary keys ( #149 )
2013-01-24 10:37:54 +00:00
Ross Lawley
692f00864d
Fixed inheritance and unique index creation ( #140 )
2013-01-22 15:16:58 +00:00
Ross Lawley
a68529fba8
Merge branch 'master' into 0.8
...
Conflicts:
tests/test_document.py
2013-01-09 13:36:17 +00:00
Ross Lawley
3aff461039
Fix test discovery
2012-12-21 16:29:27 +00:00
Ross Lawley
485b811bd0
Test case for embedded docs and 2d indexes #183
2012-12-19 17:05:27 +00:00
Ross Lawley
f335591045
Fix index build_spec #177
2012-12-19 16:55:14 +00:00
Ross Lawley
8706fbe461
Updated index creation now tied to Document class (( MongoEngine/mongoengine#102 )
2012-11-07 15:04:45 +00:00
Ross Lawley
6f29d12386
Changed the inheritance model to remove types
...
The inheritance model has changed, we no longer need to store an array of
`types` with the model we can just use the classname in `_cls`.
See the upgrade docs for information on how to upgrade
MongoEngine/mongoengine#148
2012-10-15 13:48:02 +00:00