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
Bastien Gérard
a1a93a4bdd
minor additions
2018-10-16 22:35:58 +02:00
Bastien Gérard
4939a7dd7c
update input document ids during bulk insert #1919
2018-10-16 22:21:53 +02:00
Bastien Gérard
0fa6610fdb
Fix complex combinations of DictField(ListField(ReferenceField)) ( #1453 )
2018-10-16 21:08:59 +02:00
Bastien Gérard
59a06a242d
Fix a bug when using a ReferenceField(AbstractClass) #1920
2018-10-15 22:32:11 +02:00
Bastien Gérard
556f7e85fc
Improve the error message that mentions that Document cant be subclassed
2018-10-10 23:13:34 +02:00
Bastien Gérard
adfb039ba6
Improve overall code quality (based on pylint findings)
2018-10-07 23:05:18 +02:00
Bastien Gérard
89416d9856
Fix deprecation warning about Hashable in py3.7
2018-10-05 16:17:55 +02: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
45c2151d0f
Fix side effect of no_dereference on GenericReferenceField
2018-09-25 22:56:57 +02:00
Bastien Gérard
f83ae5789b
fix side effect from queryset's no_dereference #1677
2018-09-16 23:11:45 +02:00
Bastien Gérard
57ccfcfc1b
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into swat_url_fix
2018-09-16 23:03:16 +02:00
Bastien Gérard
4314fa883f
improve 2-3 codebase compatibility
2018-09-09 23:32:10 +02:00
Bastien Gérard
f89214f9cf
Fixes bug where an EmbeddedDocument that shares the same id of its parent Document could be missing updates when .save was called
...
Fixes #1768 , Fixes #1685
2018-09-09 10:40:51 +02:00
Bastien Gérard
a86092fb64
fix doc for meta index_options
2018-09-06 22:33:33 +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
Bastien Gérard
282b83ac08
Fix default value of ComplexDateTime + fixed descriptor .__get__ for class attribute
2018-09-04 23:48:07 +02:00
Bastien Gérard
193656e71b
detect when EmbeddedDocumentListField receives an EmbeddedDocument instance instead of a list. It is a common mistake and the error wasn't meaningful (was fired from _from_son)
...
(relates to #1464 )
2018-09-04 22:26:19 +02:00
Bastien Gérard
a25d127f36
Remove DictField.basecls related code, it is useless
2018-09-04 20:51:06 +02:00
Bastien Gérard
cf9df548ca
reverted back to the StopIteration in queryset.next that one didnt have to be changed (test stalled)
2018-09-04 19:18:40 +02:00
Bastien Gérard
f29b93c762
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into dax_py3
2018-09-04 16:06:45 +02:00
Bastien Gérard
ab08e67eaf
fix inc/dec operator with decimal
2018-09-04 14:53:55 +02:00
Bastien Gérard
8ff82996fb
Fix few things related to query_counter context manager:
...
- Improve doc
- Fix the fact that the context was modifying the initial profiling_level in case it was != 0
- Ignores 'killcursors' to fix flaky test that were impacted by killcursors queries (#1869 )
2018-09-04 12:07:13 +02:00
Bastien Gérard
d59c4044b7
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into yalon-master
2018-09-03 11:23:28 +02:00
Bastien Gérard
f96f7f840e
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into dax_py3
2018-09-02 15:36:35 +02:00
Bastien Gérard
a3bcf26dce
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into pmatos_patch-1
2018-09-02 15:27:37 +02:00
Bastien Gérard
a7852a89cc
Fixes 2 bugs in no_subclasses context mgr (__exit__ swallows exception + repair feature)
2018-09-01 23:30:50 +02:00
Bastien Gérard
5e4e8d4eda
Merge branch 'master' of github.com:KCarretto/mongoengine
2018-09-01 12:04:23 +02:00
Bastien Gérard
bd524d2e1e
Documented that it is possible to specify a name when using a dict to define an index
2018-09-01 00:12:49 +02:00
Bastien Gérard
d9fce49b08
minor improvement to DateTimeField doc
2018-08-30 22:46:37 +02:00