Bastien Gérard
5a2e268160
Add test case to prevent regression
2019-06-17 22:19:41 +02:00
Bastien Gérard
baabf97acd
Merge branch 'master' of github.com:MongoEngine/mongoengine into v0.18.0_fix
2019-06-16 10:52:44 +02:00
Bastien Gérard
97005aca66
set dist as xenial to avoid relying on flaky travis default dist
2019-06-15 13:49:37 +02:00
Bastien Gérard
6e8ea50c19
"added another aggregation test"
...
This reverts commit 4c31193b82 .
2019-06-14 21:04:02 +02:00
Bastien Gérard and GitHub
5d120ebca0
Merge pull request #2058 from bagerard/improve_travis_yml
...
Improve travis yml + add python3.7 to travis
2019-06-13 23:20:15 +02:00
Bastien Gérard
f91b89f723
remove dist:xenial as it recently became the default in travis
2019-06-13 23:07:25 +02:00
Bastien Gérard
1181b75e16
clean travis.yml
2019-06-13 22:50:19 +02:00
Bastien Gérard
5f00b4f923
refactor travis - mongo install and added python3.7
2019-06-13 22:50:19 +02:00
Bastien Gérard
4c31193b82
Revert "added another aggregation test"
...
This reverts commit d7285d43dd .
2019-06-13 20:53:56 +02:00
Bastien Gérard
d7285d43dd
added another aggregation test
2019-06-12 23:54:20 +02:00
Bastien Gérard and Stefan Wójcik
4a8985278d
Document inherited members for the Document, EmbeddedDocument, DynamicDocument, and DynamicEmbeddedDocument ( #2040 )
2019-06-12 11:33:56 +02:00
Bastien Gérard
1fc5b954f2
fix typo in changelog
2019-06-10 22:38:37 +02:00
Bastien Gérard
70d6e763b0
Document the custom field validation feature
2019-06-05 22:23:54 +02:00
Bastien Gérard
15f4d4fee6
fix tests for diff mongo vers
2019-06-05 21:51:21 +02:00
Bastien Gérard
82e28dec43
improved string operation code
2019-06-04 23:17:10 +02:00
Bastien Gérard
b407c0e6c6
add test for shard key routing (ported from https://github.com/closeio/mongoengine/commit/43f35f5 )
2019-06-04 23:17:10 +02:00
Bastien Gérard
27ea01ee05
refactored datetime to_mongo, separating parsing from str + added test
2019-06-04 23:16:26 +02:00
Bastien Gérard
7ed5829b2c
Add test on datetime field - parse datetime as str
2019-06-04 23:16:26 +02:00
Bastien Gérard and GitHub
5bf1dd55b1
Update mongomock example
...
Improved the mongomock example as reported in #2067
Fixes #2067
2019-06-04 22:56:52 +02:00
Bastien Gérard
36aebffcc0
update changelog
2019-06-04 22:39:44 +02:00
Bastien Gérard
84c42ed58c
Add tests
2019-06-04 22:35:42 +02:00
Bastien Gérard
9634e44343
Fix the issue that the same MongoClient gets re-used in case we connect to 2 databases on the same host (problematic when different users authenticate)
2019-06-04 22:12:46 +02:00
Bastien Gérard and GitHub
048a045966
Update connection/multiple databases docs
...
I observed that many people were confused by this so I thought I'd make the multiple databases example more explicit
2019-06-04 21:47:28 +02:00
Bastien Gérard and GitHub
a18c8c0eb4
Merge pull request #2049 from bagerard/save_to_mongo_call_in_save
...
Improve perf of Document.save
2019-06-01 15:00:44 +02:00
Bastien Gérard
5fb0f46e3f
fix changelog (py37 not yet in travis)
2019-06-01 11:16:29 +02:00
Bastien Gérard
962997ed16
fix flaky test due to signal receiver garbage collection
2019-06-01 11:13:28 +02:00
Bastien Gérard
daca0ebc14
update changelog
2019-06-01 11:13:28 +02:00
Bastien Gérard
9ae8fe7c2d
Improve perf of Doc.save by preventing a full to_mongo() call just to get the created variable
2019-06-01 11:13:28 +02:00
Bastien Gérard and GitHub
1907133f99
Merge pull request #2050 from bagerard/change_custom_field_validation_raise
...
custom field validator is now expected to raise a ValidationError
2019-06-01 10:45:43 +02:00
Bastien Gérard
f00c9dc4d6
Fix flake8 import error
2019-05-28 09:26:07 +02:00
Bastien Gérard
7d0687ec73
custom field validator is now expected to raise a ValidationError (drop support for returning True/False)
2019-05-28 09:26:07 +02:00
Bastien Gérard and GitHub
da3773bfe8
Merge pull request #2063 from bagerard/improve_test
...
Improve minor things in the tests
2019-05-26 22:33:40 +02:00
Bastien Gérard
6e1c132ee8
Improve minor things in the tests
2019-05-26 22:17:58 +02:00
Bastien Gérard
6a843cc8b2
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_pymongo2_support_dead_code
2019-05-23 21:06:15 +02:00
Bastien Gérard
ecdb0785a4
Merge branch 'master' of github.com:MongoEngine/mongoengine into remove_pymongo2_support_dead_code
2019-05-23 21:04:58 +02:00
Bastien Gérard
2e01eb87db
Add support for MongoDB 3.6 and Python3.7 in travis
2019-05-18 14:29:42 +02:00
Bastien Gérard
bb1089e03d
Improve coverage in fields test
2019-05-17 22:16:08 +02:00
Bastien Gérard
c82f0c937d
more work on coverage
2019-05-17 22:04:28 +02:00
Bastien Gérard
00d2fd685a
more test cov
2019-05-17 22:04:28 +02:00
Bastien Gérard
f28e1b8c90
improve coverage of lazy ref field
2019-05-17 22:04:28 +02:00
Bastien Gérard and GitHub
58b0b18ddd
Merge pull request #2053 from bagerard/Fix_travis_incomp_tox_virtualenv
...
Fix Incompatibility btw recent tox version and virtualenv version
2019-05-16 23:15:09 +02:00
Bastien Gérard
6a9ef319d0
Fix Incompatibility btw recent tox version and virtualenv version
2019-05-16 23:01:43 +02:00
Bastien Gérard
cf38ef70cb
Remove more code related to supporting pymongo2
2019-05-15 22:23:35 +02:00
Bastien Gérard
ac64ade10f
remove dead code (related to pymongo2) + minor cleaning
2019-05-15 21:54:47 +02:00
Bastien Gérard
9cdc3ebee6
Fix default write concern on save call that was overwriting connection wc
2019-05-05 23:37:12 +02:00
Bastien Gérard
f7b7d0f79e
Improve tests for querying list(embedded) when using inheritance
2019-05-03 21:59:48 +02:00
Bastien Gérard
d98f36ceff
Add test for querying on fields of list(EmbeddedDocument) (with inheritance on the EmbededDoc)
2019-05-02 00:08:16 +02:00
Bastien Gérard
abfabc30c9
Fix querying on (Generic)EmbeddedDocument subclasses fields
2019-05-01 23:23:19 +02:00
Bastien Gérard
e44f71eeb1
updated changelog
2019-04-25 22:31:05 +02:00
Bastien Gérard
cb578c84e2
Merge branch 'master' of github.com:MongoEngine/mongoengine into disconnect
2019-04-25 22:15:48 +02:00
Bastien Gérard
565e1dc0ed
minor improvements
2019-04-25 22:11:43 +02:00
Bastien Gérard
b1e28d02f7
Improve connect/disconnect
...
- document disconnect + sample of usage
- add more test cases to prevent github issues regressions
2019-04-24 22:44:07 +02:00
Bastien Gérard
d1467c2f73
Fix connect/disconnect functions
...
- expose disconnect
- disconnect cleans _connection_settings
- disconnect cleans cached collection in Document._collection
- re-connecting with the same alias raise an error (must call disconnect in between)
2019-04-24 22:41:56 +02:00
Bastien Gérard
9bb3dfd639
updated changelog for recent commits + improve tests
2019-04-07 23:05:55 +02:00
Bastien Gérard
6f8be8c8ac
document change in changelog
2019-03-17 22:11:01 +01:00
Bastien Gérard
68497542b3
Bump the required version of pymongo to >=3.5
2019-03-17 22:04:19 +01:00
Bastien Gérard
9bd0d6b99d
update changelog
2019-03-04 23:05:22 +01:00
Bastien Gérard
b640c766db
Fix queryset batch_size that wasn't copied to cloned queryset
2019-03-04 23:01:12 +01:00
Bastien Gérard
7ef688b256
Added a test for push in DictField (relates to #1679 )
2019-03-02 22:05:23 +01:00
Bastien Gérard
b4fe0b35e4
Merge branch 'master' of github.com:MongoEngine/mongoengine into refactor_deprecated_pymongo_test
2019-03-02 21:48:41 +01:00
Bastien Gérard
35b7efe3f4
refactored deprecated pymongo methods in tests
...
- remove/count/add_user/insert
- added pymongo_support
2019-03-02 00:28:38 +01:00
Bastien Gérard
7cea2a768f
Fix recent flaky test for python 3.6
2019-02-26 22:57:45 +01:00
Bastien Gérard
7247b9b68e
additional fixes to support Mongo3.4
2019-02-26 21:38:23 +01:00
Bastien Gérard
dca837b843
Add suport for Mongo 3.4 (travis, fix tests)
2019-02-26 21:38:23 +01:00
Bastien Gérard
c60c2ee8d0
fix minor styling issue in tests
2019-02-25 22:33:36 +01:00
Bastien Gérard
3cdb5b5db2
fix poor assert's in tests
2019-02-25 22:29:44 +01:00
Bastien Gérard
b9cc8a4ca9
refactor more field tests into submodules #1983
2019-02-24 10:24:12 +01:00
Bastien Gérard
28606e9985
refactor fields tests (float, int, lazyref, long, url) #1983
2019-02-24 10:24:12 +01:00
Bastien Gérard
5bbe782812
fix deprecated call to pymongo save() in tests
2019-02-23 22:37:32 +01:00
Bastien Gérard
c8df3fd2a7
fix conflict
2019-02-21 21:27:08 +01:00
Bastien Gérard
f0a3445250
minor fix for import order
2019-02-18 22:22:20 +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
57a38282a9
Add DeprecationWarning for EmbeddedDocument.save & .reload - those will be removed soon
2019-02-18 22:03:03 +01:00
Bastien Gérard
201f3008b1
Fix for py3 in binary field test
2019-02-17 22:56:56 +01:00
Bastien Gérard
f4873fee18
add additional test for #1976
2019-02-17 22:50:42 +01:00
Bastien Gérard
e02261be6d
add test coverage for #1557
2019-02-17 22:22:29 +01:00
Bastien Gérard
2919e6765c
separate test on binary field ( #1983 )
2019-02-17 21:45:05 +01:00
Bastien Gérard
b8fc4d0079
Merge branch 'master' of github.com:MongoEngine/mongoengine into freyr_binaryfield_query_value_type
2019-02-17 21:38:24 +01:00
Bastien Gérard
4a46f5f095
Separate fields tests into separate modules (date/datetime/complexdatetime)
...
relates to #1983
2019-02-17 21:32:46 +01:00
Bastien Gérard
3484ceabb8
Fix documentation regarding limitation with fields with underscore in their name in DynamicDocument
2019-02-17 09:05:27 +01:00
Bastien Gérard
cab659dce6
Fix documentation of Queryset.update regarding full_result #1995
2019-02-16 21:54:05 +01:00
Bastien Gérard
69a99c70c6
minor update to .all() doc to make it clear that it does not return a list but a queryset
2018-12-24 23:51:30 +01:00
Bastien Gérard
b525c91bd3
remove tags file that shouldnt be added to situkangsayur s commit
2018-12-19 20:33:37 +01:00
Bastien Gérard
4492874d08
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_baselist_marked_changed_bug
2018-12-15 20:36:42 +01:00
Bastien Gérard
1894003f8a
bump version to 0.16.2
2018-11-21 12:45:16 +01:00
Bastien Gérard
fcbabbe357
Fix but with save(write_concern=None) - introduced in 0.16.1
2018-11-21 00:03:08 +01:00
Bastien Gérard
e50799e9c4
Merge branch 'master' of github.com:MongoEngine/mongoengine into fix_cls_in_constructor
2018-11-13 21:48:16 +01:00
Bastien Gérard
c306d42d08
Fix bug #1733 of _delta method (Issue with DynamicDocument and default value) + add test case
2018-11-13 20:57:41 +01:00
Bastien Gérard
e31558318e
BugFix - _cls not set in constructor #1950
2018-11-13 20:52:39 +01:00
Bastien Gérard
23324f0f87
minor fix in ImageField docstring
2018-11-04 22:14:27 +01:00
Bastien Gérard
17fa9a3b77
bump version to 0.16.0
2018-11-03 21:48:12 +01:00
Bastien Gérard
424b3ca308
update changelog with changes since 0.15.3
2018-11-03 21:47:56 +01:00
Bastien Gérard
8e18484898
Add a comment on a suspicious line ( #1322 )
2018-11-01 22:28:12 +01:00
Bastien Gérard
983474b2bd
Ignore 2 more flake8 warnings (introduced in latest flake8 3.6.0 release)
2018-10-30 23:40:46 +01:00
Bastien Gérard
14d861bcbb
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into generic_ref_field_changed
2018-10-30 23:21:19 +01:00
Bastien Gérard
f6cd349a16
Fix bug when using GenericReferenceField, modifications to the referenced document are tracked in the parent #1934
2018-10-30 23:00:05 +01:00
Bastien Gérard
c685ace327
minor improvement to index doc
2018-10-23 23:55:55 +02:00
Bastien Gérard
f23b0faf41
fix some asserts in no_dereference doc
2018-10-23 22:10:34 +02:00
Bastien Gérard
83fe7f7eef
Document the index option and the fact that additional options gets forwarded to pymongo's create_index method
2018-10-22 21:54:46 +02:00
Bastien Gérard
26b70e9ed3
fix test
2018-10-16 22:55:55 +02:00