Skip to content

Commit ff0d908

Browse files
committed
fixing
1 parent a5834b3 commit ff0d908

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ birch
88
collective.checkdocs
99
pygments
1010
# the memory core tests dataframe caching
11-
import pandas
11+
pandas

tests/test_mongo_core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
# define a mock MongoClient class that will raise an exception
3434
# on init, warning that pymongo is not installed
3535
class MongoClient:
36+
"""Mock MongoClient class raising ImportError on missing pymongo."""
3637
def __init__(self, *args, **kwargs):
3738
raise ImportError("pymongo is not installed!")
3839

@@ -42,6 +43,9 @@ def __init__(self, *args, **kwargs):
4243
except (ImportError, ModuleNotFoundError):
4344

4445
class InMemoryMongoClient:
46+
"""Mock InMemoryMongoClient class.
47+
48+
Raises an ImportError on missing pymongo_inmemory."""
4549
def __init__(self, *args, **kwargs):
4650
raise ImportError("pymongo_inmemory is not installed!")
4751

0 commit comments

Comments
 (0)