From e3d741e96670bac7b7134da55ce3a60182dc2c27 Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Tue, 3 Oct 2023 20:51:55 -0700 Subject: [PATCH] Add test to ensure that the right size of summary data is returned. --- tests/ext/test_matproj.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ext/test_matproj.py b/tests/ext/test_matproj.py index c51fe2ecbd4..4ea35e47f01 100644 --- a/tests/ext/test_matproj.py +++ b/tests/ext/test_matproj.py @@ -534,6 +534,7 @@ def test_get_summary(self): doc = self.rester.summary.search(material_ids="mp-19770,mp-19017", _fields="formula_pretty,energy_above_hull") assert len(doc) == 2 + assert len(doc[0]) == 2 assert doc[0]["energy_above_hull"] >= 0 assert doc[1]["energy_above_hull"] >= 0