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 my application, I use slotted classes implementing MutableMapping with mongo database for performance reasons. However, even though those objects can be stored in the database, mongomock is unable to perform searches on those object with a find() method.
Here is my MutableMapping implementation which maps keys to object attributes. It can be used like dict but it lacks the underlying dictionary
In my application, I use slotted classes implementing
MutableMapping
with mongo database for performance reasons. However, even though those objects can be stored in the database, mongomock is unable to perform searches on those object with afind()
method.Here is my
MutableMapping
implementation which maps keys to object attributes. It can be used likedict
but it lacks the underlying dictionaryI tested it with both mongomock and real mongo database. Mongomock database is unable to find the stored object.
The test fails when using mongomock, but passes when using actual database.
Using dicts works both ways.
Fetching all objects without filtering works as well.
The text was updated successfully, but these errors were encountered: