Bastien Gérard
44b7f792fe
fix benchmarks prints
2019-12-13 23:52:59 +01:00
Bastien Gérard
a3e432eb68
remove references to '2to3' in doc, travis, etc
2019-12-13 23:46:13 +01:00
Bastien Gérard
009f9a2b14
set dist as xenial to avoid relying on flaky travis default dist
2019-12-13 23:43:04 +01:00
Bastien Gérard
2ca905b6e5
Finalize python2/3 codebase compatibility and get rid of 2to3
2019-12-13 23:43:04 +01:00
Bastien Gérard
78b240b740
updated changelog + improved query_counter test
2019-12-04 21:51:07 +01:00
Bastien Gérard
81647d67a0
fix recent tests update with unittest2pytest
2019-10-31 23:06:40 +01:00
Bastien Gérard
d8924ed892
remove inheritance from unittest.TestCase on basic test classes
2019-10-31 23:02:28 +01:00
Bastien Gérard
799cdafae6
remove references to nose
2019-10-31 23:02:28 +01:00
Bastien Gérard
bc0c55e49a
improve tests health (flake8 warnings)
2019-10-31 23:01:27 +01:00
Bastien Gérard
c61c6a8525
fix == None assertions
2019-10-31 22:59:49 +01:00
Bastien Gérard
3e764d068c
fix remaining assertRaises
2019-10-31 22:59:49 +01:00
Bastien Gérard
ac25f4b98b
ran unittest2pytest
2019-10-31 22:59:49 +01:00
Bastien Gérard
37ca79e9c5
fix black formatting
2019-10-31 22:39:53 +01:00
Bastien Gérard
6040b4b494
update changelog
2019-10-31 21:33:19 +01:00
Bastien Gérard
51ea3e3c6f
fix for recent coverage/coveralls compatibility issue
2019-10-31 20:39:49 +01:00
Bastien Gérard
5a16dda50d
fix coverage for pytest runner
2019-10-31 20:39:49 +01:00
Bastien Gérard
bbfa978861
switch test runner from nose to pytest
2019-10-31 20:39:49 +01:00
Bastien Gérard
54ca7bf09f
fix associated test to avoid discrepencies btw py2 and py3
2019-10-28 23:33:37 +01:00
Bastien Gérard
8bf5370b6c
Improve error message from InvalidDocumentError whenever an embedded document has a bad shape (e.g due to migration)
2019-10-28 22:05:13 +01:00
Bastien Gérard
c60ed32f3a
Documented how pymongo.monitoring can be used with MongoEngine
2019-10-16 21:25:17 +02:00
Bastien Gérard
5bcc679194
fix 2 pymongo deprecation warnings
2019-10-10 22:55:44 +02:00
Bastien Gérard
1e17b5ac66
Fix docstring format to improve pycharm inspection
2019-10-05 14:24:54 +02:00
Bastien Gérard
19f12f3f2f
document pymongo in RTD and make it point to github
2019-10-04 21:51:12 +02:00
Bastien Gérard
71e8d9a490
Added a FAQ to doc and Document the fact that we dont support motor
2019-10-04 21:51:12 +02:00
Bastien Gérard
e3cd553f82
add latest pymongo 3.9 as part of the CI
2019-10-04 21:46:47 +02:00
Bastien Gérard
be2c4f2b3c
fix formatting and improve doc based on review
2019-09-16 21:15:35 +02:00
Bastien Gérard
7ac74b1c1f
Document Model.objects.aggregate entrypoint with an example
2019-09-15 23:27:34 +02:00
Bastien Gérard
7d94af0e31
add test coverage for no_cursor_timeout to support recent fix
2019-09-11 21:53:30 +02:00
Bastien Gérard
693195f70b
fix test_pickable that was brought back to life recently
2019-08-31 22:28:31 +03:00
Bastien Gérard
2267b7e7d7
rename remaining files for pytest migration
2019-08-30 16:27:56 +03:00
Bastien Gérard
ddececbfea
rename all test files so that they are prefixed by test_{orginal_filename}.py
2019-08-28 16:01:44 +03:00
Bastien Gérard
951a532a9f
additional fix in travis/tox
2019-07-03 09:15:28 +02:00
Bastien Gérard
e940044603
fixes in .travis.yml and tox.ini based on PR review
2019-07-02 23:06:31 +02:00
Bastien Gérard
babfbb0fcd
Merge branch 'master' of github.com:MongoEngine/mongoengine into use_globals_in_travis_yml
2019-07-02 22:57:03 +02:00
Bastien Gérard
bf32d3c39a
Merge branch 'master' of github.com:MongoEngine/mongoengine into use_globals_in_travis_yml
2019-06-30 21:11:42 +02:00
Bastien Gérard
06a21e038a
Use global constants for mongo/pymongo in travis.yml
2019-06-30 21:04:23 +02:00
Bastien Gérard
4d5eba317e
convert travis test on latest python/mongo/pymongo from python 3.6 to 3.7
2019-06-30 20:55:19 +02:00
Bastien Gérard
8f57279dc7
remove pymongo deprecated methods: find_and_modify & remove
2019-06-19 23:04:23 +02:00
Bastien Gérard
ca230d28b4
fix typo in changelog
2019-06-18 22:18:10 +02:00
Bastien Gérard
c96065b187
Merge branch 'master' of github.com:MongoEngine/mongoengine into release_0_18_1
2019-06-18 22:17:06 +02:00
Bastien Gérard
2abcf4764d
minor fixes based on review of #2082
2019-06-18 22:15:53 +02:00
Bastien Gérard
63c9135184
Bump version number and update changelog for 0.18.1
2019-06-17 22:36:54 +02:00
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
68e8584520
add pypy3 back to travis and improve python 3.7 integration
2019-06-13 23:29: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