Skip to content

Commit 4ced109

Browse files
committed
feat(Dependencies): Bumped Mongoengine to version 0.27, replaced mongomock connection format
1 parent 10fbf73 commit 4ced109

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

graphene_mongo/tests/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import mongoengine
22
from datetime import datetime
3+
import mongomock
34
from mongomock import gridfs
45

56
gridfs.enable_gridfs_integration()
67
mongoengine.connect(
7-
"graphene-mongo-test", host="mongomock://localhost", alias="default"
8+
"graphene-mongo-test", mongo_client_class=mongomock.MongoClient, alias="default"
89
)
910

1011

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ future==0.18.2
66
graphene==3.1.1
77
promise==2.3
88
mongoengine==0.19.1; python_version <= '3.5'
9-
mongoengine==0.24.2; python_version > '3.5'
9+
mongoengine==0.27; python_version > '3.5'
1010
mongomock==4.1.2
1111
pytest==4.6.11; python_version <= '3.5'
1212
pytest==7.1.3; python_version > '3.5'

0 commit comments

Comments
 (0)