Skip to content

Commit ca52e03

Browse files
committed
revert GridFS.count_documents({}) (doesn't exist) to GridFS.find({}).count()
1 parent 75ad7b5 commit ca52e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atomate/vasp/firetasks/tests/test_lobster_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ def test_mongodb_more_files(self):
157157
self.assertListEqual(load_dict["output"]["chargespilling"], [0.008, 0.008])
158158
db = self.get_task_database()
159159
gfs = gridfs.GridFS(db, "lobster_files")
160-
results = gfs.count_documents({})
160+
results = gfs.find({}).count()
161161
self.assertEqual(results, 2)
162162
for fn in ["ICOHPLIST", "COOPCAR"]:
163163
oid = load_dict[fn.lower() + "_id"]
164-
results = gfs.count_documents({"_id": oid})
164+
results = gfs.find({"_id": oid}).count()
165165
self.assertEqual(results, 1)
166166

167167
def test_jsonfile_si(self):

0 commit comments

Comments
 (0)