github mongomock/mongomock 3.12.0

latest releases: 4.1.3, 4.1.2, 4.1.1...
5 years ago
  • Use package version as recommended by @vmalloc
  • [Small Fix] Re-enable tests for GridFs by fixing an import
  • Split parser from the aggregate pipeline in a separate module and class
  • [Code Style] Harmonize python quotes
  • [Code Style] Avoid else after a return
  • Handle array pipeline size operator
  • Store index information and return index name from create_index
  • Raise errors when trying to use unrecognized or not implemented expressions within the aggregate pipeline
  • Enforce some pylint rules: unused-import,unidiomatic-typecheck,unnecessary-pass,superflous-parens,len-as-condition
  • Also run pylint on codebase
  • Update versions of the lint tools
  • Implement Cursor's alive property
  • First step to report tested code coverage
  • Implement a basic version of write_concern property. Fixes #406
  • Enable tests using both pyexecjs & pymongo
  • Implement comparison of values of different types when using $gt in the aggregation pipeline
  • Implement options of the $unwind aggregation operation
  • Add support for the $sample operator in the aggregation framework
  • Fix some unicode issues in Python 2
  • Raise an attribute error when trying to access a collection starting by an underscore as an attribute
  • Add session arg to database and collection methods
  • Implement the $bucket aggregation pipeline stage
  • Ensure uniqueness of new unique index among documents already existing upon creation
  • Mark the $slice modifier of $push operations as not implemented in Mongomock yet
  • Implement Objects comparison and stop trying compare values of different types. Fixes #400
  • Mark the dict options of the $unwind operator as not implemented yet
  • Update list of missing pipeline operators
  • Fix #331 where dict order is not kept all along
  • Fix the projection case where an exclusion is just a refinement of an existing exclusion
  • Cleanup python style
  • fix: collection: do not reverse result in addToSet since MongoDoc specifies it should be unordered
  • refacto: collection: use temporary variable
  • style: collection: write comment as a sentence
  • test: MongoClientAggregateTest: improve addToSet dict element
  • test: MongoClientAggregateTest: use insert_many instead of insert
  • test: MongoClientAggregateTest: use zip instead of nested loop
  • test: MongoClientAggregateTest: use self.assertEqual instead of assert
  • Fix behaviour of projection values in collection's find method when is neither 0 nor 1
  • Implement the new method count_documents introduced in MongoDB v3.7

Don't miss a new mongomock release

NewReleases is sending notifications on new releases.