Skip to content

Commit 6bd1789

Browse files
committed
fix TestInsertionWorkflow (needs general overhaul I think)
1 parent f954524 commit 6bd1789

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

atomate/vasp/workflows/tests/test_insertion_workflow.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ def test_has_inserted(self):
119119
}
120120
),
121121
)
122-
formula = self.get_task_collection(coll_name="tasks").distinct("formula_pretty")
123-
self.assertEqual(set(formula), {"Y2Mg(PO4)2", "YPO4"})
122+
formulas = self.get_task_collection(coll_name="tasks").distinct(
123+
"formula_pretty"
124+
)
125+
self.assertEqual(set(formulas), {"YPO4"})
124126

125127
self.lp.add_wf(self.wf)
126128
rapidfire(
@@ -133,7 +135,9 @@ def test_has_inserted(self):
133135
),
134136
)
135137
# Check that all of the inserted pretty formulas are present
136-
formula = self.get_task_collection(coll_name="tasks").distinct("formula_pretty")
138+
formulas = self.get_task_collection(coll_name="tasks").distinct(
139+
"formula_pretty"
140+
)
137141
self.assertEqual(
138-
set(formula), {"Y2Mg(PO4)2", "Y2Mg3(PO4)2", "YMg2PO4", "YMgPO4", "YPO4"}
142+
set(formulas), {"Y2Mg(PO4)2", "Y2Mg3(PO4)2", "YMg2PO4", "YMgPO4", "YPO4"}
139143
)

0 commit comments

Comments
 (0)