Skip to content

Commit 0899bae

Browse files
authored
Merge pull request #3 from Zhuoying/main
pull from CI-test-update
2 parents bdc1133 + 3495c5a commit 0899bae

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
py3devtest:
3737
working_directory: ~/atomate
3838
docker:
39+
- image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3
3940
- image: circleci/mongo:latest
4041
steps:
4142
- checkout

atomate/vasp/firetasks/tests/test_lobster_tasks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ 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.find({}).count()
161-
self.assertEqual(results, 2)
160+
results = gfs.find({})
161+
self.assertEqual(len(list(results)), 2)
162162
for fn in ["ICOHPLIST", "COOPCAR"]:
163163
oid = load_dict[fn.lower() + "_id"]
164-
results = gfs.find({"_id": oid}).count()
165-
self.assertEqual(results, 1)
164+
results = gfs.find({"_id": oid})
165+
self.assertEqual(len(list(results)), 1)
166166

167167
def test_jsonfile_si(self):
168168
copy_r(self.vasp_si_dir, ".")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM python:3.6.4
1+
FROM python:3.7.3
22

33
RUN apt-get update && apt-get install -y gfortran python-openbabel python-vtk python3-tk
44
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
55
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
6-
RUN export PATH=$HOME/miniconda3/bin:$PATH
6+
RUN export PATH=$HOME/miniconda3/bin:$PATH

0 commit comments

Comments
 (0)