Commit Graph
302 Commits
Author SHA1 Message Date
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 c8df3fd2a7 fix conflict 2019-02-21 21:27:08 +01:00
Bastien Gérard 6d353dae1e refactored iteritems/itervalues to improve 2/3 compat #2003 2019-02-18 22:13:05 +01:00
erdenezulandGitHub 2a121fe202 Merge branch 'master' into Fix_update_full_result_documentation 2019-02-18 09:31:00 +08:00
Bastien Gérard f4873fee18 add additional test for #1976 2019-02-17 22:50:42 +01:00
Bastien Gérard cab659dce6 Fix documentation of Queryset.update regarding full_result #1995 2019-02-16 21:54:05 +01:00
Eddie Linder c6c68abfcc Update changelog and add another ut case 2019-01-11 19:23:47 +02:00
Eddie Linder 56d9f7a8af Fix ut to pass constantly 2018-12-20 01:14:23 +02:00
Eddie Linder 6fbdde63d8 Fix id in test_only_after_count ut 2018-12-20 00:57:02 +02:00
Eddie Linder b04dc90cdf Bring back _cls and _id fields just as they return in pymongo 2018-12-20 00:39:32 +02:00
Tom Floyer 72ebaa52e9 Ensure that QuerySet.only() works correctly after QuerySet.count()
This test checks if .only() method of QuerySet instance works after
using .count() method.
2018-12-08 22:10:10 +03: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
erdenezulandGitHub f44a2f4857 Merge pull request #1843 from terencehonles/add-__repr__-to-Q-and-QCombination
add __repr__ to Q and QCombination
2018-10-25 10:14:05 +08: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 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
erdenezulandGitHub 55fc04752a Merge pull request #1903 from bagerard/mongodb_32
Fixed tests to allow support of MongoDB 3.2 + Drop Mongo2.4 from CI
2018-10-01 10:37:12 +08: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 4314fa883f improve 2-3 codebase compatibility 2018-09-09 23:32:10 +02:00
erdenezulandGitHub e79ea7a2cf Merge branch 'master' into limit_behaviour 2018-09-07 15:34:23 +08:00
erdenezulandGitHub 8f76e1e344 Merge branch 'master' into refactoring_poor_assertions_in_tests 2018-09-07 14:37:28 +08:00
erdenezulandGitHub 5b1693a908 Merge pull request #1871 from bagerard/improve_query_counter
Fix few things related to query_counter context manager
2018-09-07 14:22:12 +08: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 a25d127f36 Remove DictField.basecls related code, it is useless 2018-09-04 20:51:06 +02:00
erdenezulandGitHub 29889d1e35 Merge pull request #1868 from bagerard/yalon-master
CLONE - When building a query set from filters that reference the same field several times, do not assume each value is a dict
2018-09-04 21:17:49 +08: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 86548fc7bf Document the attribute of .from_json 2018-08-28 22:42:51 +02:00
Terence D. Honles b3b4d992fe add Q repr tests 2018-08-27 19:35:47 -07:00
Tal Yalon 080226dd72 Fix issue #1286 and #844.: when building a query set from filters that reference the same field several times, do not assume each value is a dict 2018-06-22 14:16:17 +03:00
erdenezulandGitHub 3cb6a5cfac Merge pull request #1575 from zetaben/master
Make queryset aggregates obey read_preference
2018-05-24 22:23:49 +08:00
Erdenezul Batmunkh 9bd328e147 query_counter fix 2018-05-21 10:04:59 +08:00
Erdenezul Batmunkh 6fb5c312c3 fix test error 2018-05-21 09:54:19 +08:00
Erdenezul Batmunkh 3f9ff7254f fix queryset tests 2018-05-21 09:46:23 +08:00
Erdenezul Batmunkh f7a3acfaf4 query profiler test fix 2018-05-21 09:34:44 +08:00
Erdenezul Batmunkh e4451ccaf8 insert_many uses only one insert 2018-05-21 09:24:40 +08:00
Erdenezul Batmunkh 2adb640821 modify bulk_insert test for pymongo3 2018-05-21 09:19:03 +08:00
Erdenezul Batmunkh fc5d9ae100 pymongo3 does not support continue_on_error 2018-05-20 18:39:22 +08:00
Erdenezul Batmunkh 506168ab83 use write_concern class 2018-05-20 18:25:50 +08:00
Erdenezul Batmunkh 0da8fb379d Merge remote-tracking branch 'calgary/issue-1491' into update_pymongo3 2018-05-20 12:38:22 +08:00
erdenezulandGitHub a2d3bcd571 Merge pull request #1562 from erdenezul/support_multiple_operator
support multiple operator #1510
2018-05-20 12:20:04 +08:00
Andy Yankovsky 5a6d4387ea Restore comment from cached value after cursor copy 2018-05-07 23:17:12 +03:00
erdenezulandGitHub 317e844886 Merge pull request #1765 from kushalmitruka/master
fixed : `pull` not working for EmbeddedDocumentListField, only working for ListFields #1534
2018-05-03 09:44:54 +08:00
Kushal Mitruka b1f62a2735 added import in tests/queryset/transform.py for SON object 2018-05-01 21:08:43 +05:30
Kushal MitrukaandGitHub 65e4fea4ef added test cases for update pull queries 2018-05-01 20:32:38 +05:30