Stefan Wojcik 
							
						 
					 
					
						
						
							
						
						8e8c74c621 
					 
					
						
						
							
							Drop the unused mongodb_version attribute in IndexesTest  
						
						
						
						
					 
					
						2019-06-07 12:35:38 +02:00 
						 
				 
			
				
					
						
							
							
								Stefan Wojcik 
							
						 
					 
					
						
						
							
						
						f996f3df74 
					 
					
						
						
							
							Cleaner test_hint  
						
						
						
						
					 
					
						2019-06-07 12:34:32 +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 
							
						 
					 
					
						
						
							
						
						6e1c132ee8 
					 
					
						
						
							
							Improve minor things in the tests  
						
						
						
						
					 
					
						2019-05-26 22:17:58 +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 
						 
				 
			
				
					
						
							
							
								erdenezul 
							
						 
					 
					
						
						
							
						
						b70ffc69df 
					 
					
						
						
							
							Merge branch 'master' into bump_pymongo_version_requirement  
						
						
						
						
					 
					
						2019-03-19 08:50:21 +08:00 
						 
				 
			
				
					
						
							
							
								Paulo Amaral 
							
						 
					 
					
						
						
							
						
						ba6a37f315 
					 
					
						
						
							
							Generate Unique Indices for SortedListField and EmbeddedDocumentListFields  
						
						
						
						
					 
					
						2019-03-18 11:32:53 +00: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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						6d353dae1e 
					 
					
						
						
							
							refactored iteritems/itervalues to improve 2/3 compat  #2003  
						
						
						
						
					 
					
						2019-02-18 22:13:05 +01: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 
							
						 
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
							
							
								Ephraim Berkovitch 
							
						 
					 
					
						
						
							
						
						398964945a 
					 
					
						
						
							
							Document.objects.create should raise NotUniqueError upon saving duplicate primary key ( #1485 )  
						
						
						
						
					 
					
						2017-02-27 09:42:44 -05:00 
						 
				 
			
				
					
						
							
							
								Omer Katz 
							
						 
					 
					
						
						
							
						
						2bedb36d7f 
					 
					
						
						
							
							Test against multiple MongoDB versions in Travis ( #1074 )  
						
						
						
						
					 
					
						2017-02-26 14:52:43 -05:00 
						 
				 
			
				
					
						
							
							
								Stefan Wójcik 
							
						 
					 
					
						
						
							
						
						835d3c3d18 
					 
					
						
						
							
							Improve the health of this package ( #1428 )  
						
						
						
						
					 
					
						2016-12-11 18:49:21 -05:00 
						 
				 
			
				
					
						
							
							
								Stefan Wójcik 
							
						 
					 
					
						
						
							
						
						800f656dcf 
					 
					
						
						
							
							remove unnecessary randomness in indexes tests ( #1423 )  
						
						
						
						
					 
					
						2016-12-04 00:31:54 -05:00 
						 
				 
			
				
					
						
							
							
								Stefan Wójcik 
							
						 
					 
					
						
						
							
						
						3c455cf1c1 
					 
					
						
						
							
							Improve health of this package ( #1409 )  
						
						... 
						
						
						
						* added flake8 and flake8-import-order to travis for py27
* fixed a test that fails from time to time depending on an order of a dict
* flake8 tweaks for the entire codebase excluding tests 
						
						
					 
					
						2016-11-28 19:00:34 -05:00 
						 
				 
			
				
					
						
							
							
								Gilb's 
							
						 
					 
					
						
						
							
						
						e34100bab4 
					 
					
						
						
							
							Another attempt to fix random fails of test test_compound_key_dictfield.  
						
						
						
						
					 
					
						2016-03-18 23:43:23 +01:00 
						 
				 
			
				
					
						
							
							
								Gilb's 
							
						 
					 
					
						
						
							
						
						39eec59c90 
					 
					
						
						
							
							Fix test failing randomly because of concurrency.  
						
						
						
						
					 
					
						2016-03-18 19:45:34 +01:00 
						 
				 
			
				
					
						
							
							
								George Macon 
							
						 
					 
					
						
						
							
						
						00221e3410 
					 
					
						
						
							
							Allow sparse compound indexes  
						
						
						
						
					 
					
						2015-12-09 18:38:28 -05:00 
						 
				 
			
				
					
						
							
							
								David Bordeynik 
							
						 
					 
					
						
						
							
						
						5334ea393e 
					 
					
						
						
							
							fix-#842: Fix ignored chained options  
						
						
						
						
					 
					
						2015-07-02 23:08:09 +03:00 
						 
				 
			
				
					
						
							
							
								Matthieu Rigal 
							
						 
					 
					
						
						
							
						
						0aeb1ca408 
					 
					
						
						
							
							Various fixes again  
						
						
						
						
					 
					
						2015-06-24 00:50:36 +02:00 
						 
				 
			
				
					
						
							
							
								Matthieu Rigal 
							
						 
					 
					
						
						
							
						
						a0257ed7e7 
					 
					
						
						
							
							Updated test to use new create_index method  
						
						
						
						
					 
					
						2015-06-02 00:14:18 +02:00 
						 
				 
			
				
					
						
							
							
								Matthieu Rigal 
							
						 
					 
					
						
						
							
						
						f35d0b2b37 
					 
					
						
						
							
							Added create_index method, warnings for drop_dups and a geohaystack test  
						
						
						
						
					 
					
						2015-06-01 23:12:43 +02:00 
						 
				 
			
				
					
						
							
							
								Matthieu Rigal 
							
						 
					 
					
						
						
							
						
						283e92d55d 
					 
					
						
						
							
							Added hashed index, a bit more of geo-indexes, possibility to give _cls and docs  
						
						
						
						
					 
					
						2015-06-01 22:11:21 +02:00 
						 
				 
			
				
					
						
							
							
								Matthieu Rigal 
							
						 
					 
					
						
						
							
						
						f97db93212 
					 
					
						
						
							
							corrected test for MongoDB 2.X  
						
						
						
						
					 
					
						2015-05-07 12:48:25 +02:00 
						 
				 
			
				
					
						
							
							
								Matthieu Rigal 
							
						 
					 
					
						
						
							
						
						1005c99e9c 
					 
					
						
						
							
							corrected index test for MongoDB 3+  
						
						
						
						
					 
					
						2015-05-07 12:47:31 +02:00 
						 
				 
			
				
					
						
							
							
								mrigal 
							
						 
					 
					
						
						
							
						
						c5ed308ea5 
					 
					
						
						
							
							comments update after having tested PyMongo 3.0.1  
						
						
						
						
					 
					
						2015-05-07 12:47:31 +02:00 
						 
				 
			
				
					
						
							
							
								mrigal 
							
						 
					 
					
						
						
							
						
						f31f52ff1c 
					 
					
						
						
							
							corrected test condition, depending on mongodb and not pymongo version  
						
						
						
						
					 
					
						2015-05-07 12:47:30 +02:00 
						 
				 
			
				
					
						
							
							
								mrigal 
							
						 
					 
					
						
						
							
						
						48316ba60d 
					 
					
						
						
							
							implemented global IS_PYMONGO_3  
						
						
						
						
					 
					
						2015-05-07 12:47:29 +02:00 
						 
				 
			
				
					
						
							
							
								mrigal 
							
						 
					 
					
						
						
							
						
						ccbd128fa2 
					 
					
						
						
							
							first adaptations after comments and find-outs  
						
						
						
						
					 
					
						2015-05-07 12:47:29 +02:00 
						 
				 
			
				
					
						
							
							
								mrigal 
							
						 
					 
					
						
						
							
						
						36eedc987c 
					 
					
						
						
							
							adapted index test to new explain output in pymongo3 and added comment to a possible pymongo3 bug  
						
						
						
						
					 
					
						2015-05-07 12:47:29 +02:00 
						 
				 
			
				
					
						
							
							
								Stefan Wojcik 
							
						 
					 
					
						
						
							
						
						9bdc320cf8 
					 
					
						
						
							
							dont send a "cls" option to ensureIndex (related to  https://jira.mongodb.org/browse/SERVER-769 )  
						
						
						
						
					 
					
						2015-05-06 11:25:45 +02:00 
						 
				 
			
				
					
						
							
							
								David Bordeynik 
							
						 
					 
					
						
						
							
						
						25298c72bb 
					 
					
						
						
							
							Fix   #877 : Fix tests for pymongo 2.8+  
						
						
						
						
					 
					
						2015-02-15 10:02:22 +02:00 
						 
				 
			
				
					
						
							
							
								Matthew Ellison 
							
						 
					 
					
						
						
							
						
						db36d0a375 
					 
					
						
						
							
							Ensure Indexes before Each Save  
						
						... 
						
						
						
						- Rely on caching within the PyMongo driver to provide lightweight calls
  while indices are cached.
- Closes  MongoEngine/mongoengine#812 . 
						
						
					 
					
						2014-12-04 08:45:15 -05:00 
						 
				 
			
				
					
						
							
							
								Matthew Ellison 
							
						 
					 
					
						
						
							
						
						bc53dd6830 
					 
					
						
						
							
							Generate Unique Indices for Lists of EmbeddedDocs  
						
						... 
						
						
						
						- Unique indices are now created in the database for EmbeddedDocument
  fields when the EmbeddedDocument is in a ListField
- Closes Issue #358  
						
						
					 
					
						2014-11-19 22:37:27 -05:00 
						 
				 
			
				
					
						
							
							
								DavidBord 
							
						 
					 
					
						
						
							
						
						46da918dbe 
					 
					
						
						
							
							fix-#733: index_cls is ignored when deciding to set _cls as index prefix  
						
						
						
						
					 
					
						2014-08-17 11:19:18 +03:00 
						 
				 
			
				
					
						
							
							
								Clay McClure 
							
						 
					 
					
						
						
							
						
						74bd7c3744 
					 
					
						
						
							
							Include preliminary support for text indexes  
						
						... 
						
						
						
						To index a text field, prefix the field name with `$`, as in `$title`. 
						
						
					 
					
						2014-06-27 14:48:32 -04:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						94e177c0ef 
					 
					
						
						
							
							Allow strings to be used in index creation  #677  
						
						
						
						
					 
					
						2014-06-27 12:49:31 +01:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						708dbac70e 
					 
					
						
						
							
							Depending on pymongo it might raise a TypeError or ValueError  
						
						
						
						
					 
					
						2014-01-14 10:09:11 +00:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						0c43787996 
					 
					
						
						
							
							Fixed indexing - turn off _cls ( #414 )  
						
						
						
						
					 
					
						2013-07-30 11:43:52 +00:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						e58b3390aa 
					 
					
						
						
							
							Removed import with from future  
						
						
						
						
					 
					
						2013-05-01 08:48:14 +00:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						9c1cd81adb 
					 
					
						
						
							
							Add support for new geojson fields, indexes and queries ( #299 )  
						
						
						
						
					 
					
						2013-04-30 14:46:23 +00:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						b0c1ec04b5 
					 
					
						
						
							
							Improvements to indexing documentation ( #130 )  
						
						
						
						
					 
					
						2013-04-29 07:38:31 +00:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						e4f38b5665 
					 
					
						
						
							
							Fragile test fix  
						
						
						
						
					 
					
						2013-04-22 16:46:59 +00:00 
						 
				 
			
				
					
						
							
							
								Ross Lawley 
							
						 
					 
					
						
						
							
						
						c16e6d74e6 
					 
					
						
						
							
							Updated connection to use MongoClient ( #262 ,  #274 )  
						
						
						
						
					 
					
						2013-04-22 15:07:15 +00:00