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
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
Stefan Wójcik
4334955e39
Update the test matrix to reflect what's supported in 2019 ( #2066 )
...
Previously, we were running the test suite for several combinations of MongoDB,
Python, and PyMongo:
- PyPy, MongoDB v2.6, PyMongo v3.x (which really means v3.6.1 at the moment)
- Python v2.7, MongoDB v2.6, PyMongo v3.x
- Python v3.5, MongoDB v2.6, PyMongo v3.x
- Python v3.6, MongoDB v2.6, PyMongo v3.x
- Python v2.7, MongoDB v3.0, PyMongo v3.5.0
- Python v3.6, MongoDB v3.0, PyMongo v3.5.0
- Python v3.5, MongoDB v3.2, PyMongo v3.x
- Python v3.6, MongoDB v3.2, PyMongo v3.x
- Python v3.6, MongoDB v3.4, PyMongo v3.x
- Python v3.6, MongoDB v3.6, PyMongo v3.x
There were a couple issues with this setup:
1. MongoDB v2.6 – v3.2 have reached their End of Life already (v2.6 almost 3
years ago!). See the "MongoDB Server" section on
https://www.mongodb.com/support-policy .
2. We were only testing two recent-ish PyMongo versions (v3.5.0 & v3.6.1).
We were not testing the oldest actively supported MongoDB/PyMongo/Python
setup.
This PR updates the test matrix so that these problems are solved. For the
sake of simplicity, it does not yet attempt to cover MongoDB v4.0:
- PyPy, MongoDB v3.4, PyMongo v3.x (aka v3.6.1 at the moment)
- Python v2.7, MongoDB v3.4, PyMongo v3.x
- Python v3.5, MongoDB v3.4, PyMongo v3.x
- Python v3.6, MongoDB v3.4, PyMongo v3.x
- Python v2.7, MongoDB v3.4, PyMongo v3.4
- Python v3.6, MongoDB v3.6, PyMongo v3.x
2019-05-31 11:01:15 +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
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
24ba35d76f
Merge pull request #2062 from george-pearson/deprecation_warning_pymongo
...
Use update_one instead of deprecated update #1899
2019-05-26 21:20:56 +02:00
George Pearson
64b63e9d52
Use update_one instead of deprecated update #1899
2019-05-26 17:29:23 +01:00
erdenezul
7848a82a1c
Merge pull request #2032 from bagerard/remove_pymongo2_support_dead_code
...
remove dead code (related to pymongo2)
2019-05-25 14:43:20 +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
erdenezul
9a55caed75
Merge pull request #2056 from bagerard/support_mongo36
...
Add support for MongoDB 3.6 and Python3.7 in travis
2019-05-18 17:06:48 +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
erdenezul
597b962ad5
Merge pull request #2055 from bagerard/improve_test_cov
...
Improve test cov
2019-05-18 12:40:20 +02:00
Bastien Gérard
7531f533e0
Merge pull request #2054 from abarto/add-nin-support-transform
...
Add support for '$nin' when transforming a 'pull' update query.
2019-05-18 11:14:32 +02:00
Agustin Barto
6b9d71554e
Add integration tests
2019-05-17 17:23:52 -03: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
Agustin Barto
2b17985a11
Uncomment tests.
2019-05-17 13:55:00 -03:00
Agustin Barto
b392e3102e
Add support to transform. Add pull tests for and .
2019-05-17 13:41:02 -03:00
Bastien Gérard
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
erdenezul
ee85af34d8
Merge pull request #2043 from bagerard/fix_write_concern_in_save
...
Fix default write concern on save call that was overwriting connection WC
2019-05-15 15:26:50 +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
erdenezul
14a5e05d64
Merge pull request #2042 from bagerard/fix_querying_embedded_subcls
...
Fix querying embeddedDoc sub classes
2019-05-04 17:10:23 +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
erdenezul
c1aff7a248
Merge pull request #2038 from bagerard/disconnect
...
Fix connect/disconnect functions
2019-04-30 14:08:55 +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
c439150431
Merge pull request #2031 from yandrieiev/fail_fast_when_invalid_db_name
...
Fail fast when db name is invalid
2019-04-10 22:50:29 +02:00
Bastien Gérard
9bb3dfd639
updated changelog for recent commits + improve tests
2019-04-07 23:05:55 +02:00
Bastien Gérard
4caa58b9ec
Merge pull request #2029 from nsuthar0914/patch-1
...
Fix limit usage in aggregate
2019-04-07 22:32:31 +02:00
Yurii Andrieiev
b5213097e8
Fail fast when db name is invalid
...
Without this commit save operation on first document would fail instead of immediate failure upon connection attempt. Such later failure is much less obvious.
2019-04-07 23:21:12 +03:00
Neeraj Suthar
61081651e4
reinsert fix; add comments, reference
2019-04-06 17:42:14 +05:30
Neeraj Suthar
4ccfdf051d
remove fix; add testcases
2019-04-06 17:23:02 +05:30
Neeraj
9f2a9d9cda
Fix limit usage in aggregate
...
As per https://stackoverflow.com/a/24161461
2019-04-03 19:09:45 +05:30
Bastien Gérard
827de76345
Merge pull request #2007 from GVRV/feature/fix_multiple_dereference_calls
...
Fix Multiple Redundant Dereference Calls
2019-03-30 20:39:31 +01:00
Gaurav Dadhania
fdcaca42ae
Do not keep calling _dereference on values if it has already been dereferenced.
2019-03-25 09:43:42 +05:30