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 case anyone else needs to patch their local working version while waiting for updates, here's how to do it ....
Create a file mongomock_patch.py for example and here's my simple implementation of $dateSubtract without worrying about supporting timezone for now ....
Then in your test or your conftest.py just do the following (import patch_mongomock_aggregation() from your file above, wherever that may be ... sample imports below
Activity
mbyrne00 commentedon Nov 21, 2024
In case anyone else needs to patch their local working version while waiting for updates, here's how to do it ....
Create a file
mongomock_patch.pyfor example and here's my simple implementation of$dateSubtractwithout worrying about supportingtimezonefor now ....Then in your test or your
conftest.pyjust do the following (importpatch_mongomock_aggregation()from your file above, wherever that may be ... sample imports belowAdd $dateAdd and $dateSubtract aggregation operators
Add $dateAdd and $dateSubtract aggregation operators