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 2121from typing import Any , Optional
2222
2323import pytest
24- from mockupdb import MockupDB , OpMsgReply
2524
2625from pymongo import AsyncMongoClient , MongoClient
2726from pymongo .driver_info import DriverInfo
2827from pymongo .monitoring import ConnectionClosedEvent
2928
29+ try :
30+ from mockupdb import MockupDB , OpMsgReply
31+
32+ _HAVE_MOCKUPDB = True
33+ except ImportError :
34+ _HAVE_MOCKUPDB = False
35+
3036pytestmark = pytest .mark .mockupdb
3137
3238_IS_SYNC = False
Original file line number Diff line number Diff line change 2121from typing import Any , Optional
2222
2323import pytest
24- from mockupdb import MockupDB , OpMsgReply
2524
2625from pymongo import MongoClient
2726from pymongo .driver_info import DriverInfo
2827from pymongo .monitoring import ConnectionClosedEvent
2928
29+ try :
30+ from mockupdb import MockupDB , OpMsgReply
31+
32+ _HAVE_MOCKUPDB = True
33+ except ImportError :
34+ _HAVE_MOCKUPDB = False
35+
3036pytestmark = pytest .mark .mockupdb
3137
3238_IS_SYNC = True
You can’t perform that action at this time.
0 commit comments