Skip to content

Commit

Permalink
switch from mongomock persistence branch to mongomock-persistence pac…
Browse files Browse the repository at this point in the history
…kage
  • Loading branch information
ikondov committed May 24, 2024
1 parent 605a009 commit 8b27956
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fireworks/fw_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from monty.design_patterns import singleton
from monty.serialization import dumpfn, loadfn
import pymongo
import mongomock
import mongomock_persistence
import mongomock.gridfs

__author__ = "Anubhav Jain"
Expand Down Expand Up @@ -169,7 +169,7 @@ def override_user_settings() -> None:
if globals()['MONGOMOCK_SERVERSTORE_FILE']:
if not os.environ.get('MONGOMOCK_SERVERSTORE_FILE'):
os.environ['MONGOMOCK_SERVERSTORE_FILE'] = globals()['MONGOMOCK_SERVERSTORE_FILE']
globals()['MongoClient'] = getattr(mongomock, 'MongoClient')
globals()['MongoClient'] = getattr(mongomock_persistence, 'MongoClient')
if globals()['GRIDFS_FALLBACK_COLLECTION']:
mongomock.gridfs.enable_gridfs_integration()

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ flask==2.2.5
flask-paginate==0.5.5
gunicorn==20.0.4
tqdm==4.41.0
mongomock @ git+https://github.com/ikondov/mongomock.git@persistence
mongomock-persistence==0.0.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"tqdm>=4.8.4",
"importlib-metadata>=4.8.2; python_version<'3.8'",
"typing-extensions; python_version<'3.8'",
"mongomock @ git+https://github.com/ikondov/mongomock.git@persistence",
"mongomock-persistence>=0.0.3",
],
extras_require={
"rtransfer": ["paramiko>=2.4.2"],
Expand Down

0 comments on commit 8b27956

Please sign in to comment.