File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 21
21
from typing import Any , Optional
22
22
23
23
import pytest
24
- from mockupdb import MockupDB , OpMsgReply
25
24
26
25
from pymongo import AsyncMongoClient , MongoClient
27
26
from pymongo .driver_info import DriverInfo
28
27
from pymongo .monitoring import ConnectionClosedEvent
29
28
29
+ try :
30
+ from mockupdb import MockupDB , OpMsgReply
31
+
32
+ _HAVE_MOCKUPDB = True
33
+ except ImportError :
34
+ _HAVE_MOCKUPDB = False
35
+
30
36
pytestmark = pytest .mark .mockupdb
31
37
32
38
_IS_SYNC = False
Original file line number Diff line number Diff line change 21
21
from typing import Any , Optional
22
22
23
23
import pytest
24
- from mockupdb import MockupDB , OpMsgReply
25
24
26
25
from pymongo import MongoClient
27
26
from pymongo .driver_info import DriverInfo
28
27
from pymongo .monitoring import ConnectionClosedEvent
29
28
29
+ try :
30
+ from mockupdb import MockupDB , OpMsgReply
31
+
32
+ _HAVE_MOCKUPDB = True
33
+ except ImportError :
34
+ _HAVE_MOCKUPDB = False
35
+
30
36
pytestmark = pytest .mark .mockupdb
31
37
32
38
_IS_SYNC = True
You can’t perform that action at this time.
0 commit comments