Skip to content

Commit e0f8892

Browse files
committed
move test_missing_mongetter and mark it as a mongodb core test
1 parent b262ec2 commit e0f8892

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

tests/test_core_lookup.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,3 @@ def test_bad_name():
3333
@cachier(backend=invalid_core)
3434
def dummy_func():
3535
pass
36-
37-
38-
def test_missing_mongetter():
39-
# Test that the appropriate exception is thrown
40-
# when forgetting to specify the mongetter.
41-
with pytest.raises(MissingMongetter):
42-
43-
@cachier(backend="mongo", mongetter=None)
44-
def dummy_func():
45-
pass

tests/test_mongo_core.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ def _test_mongetter():
120120
# === Mongo core tests ===
121121

122122

123+
@pytest.mark.mongo
124+
def test_missing_mongetter():
125+
# Test that the appropriate exception is thrown
126+
# when forgetting to specify the mongetter.
127+
with pytest.raises(MissingMongetter):
128+
129+
@cachier(backend="mongo", mongetter=None)
130+
def dummy_func():
131+
pass
132+
133+
123134
@pytest.mark.mongo
124135
def test_information():
125136
print("\npymongo version: ", end="")

0 commit comments

Comments
 (0)