You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In writing some tests for a database migration layer that interacts with MongoEngine, I've found that the database attribute on mongomock's Collection follows the "sub-collection" behaviour rather than exposing the Database object. It seems like what I really want is stored as the _database attribute on mongomock's Collection.
In writing some tests for a database migration layer that interacts with MongoEngine, I've found that the
database
attribute on mongomock'sCollection
follows the "sub-collection" behaviour rather than exposing the Database object. It seems like what I really want is stored as the_database
attribute on mongomock'sCollection
.Expected behaviour is documented here.
The text was updated successfully, but these errors were encountered: