Skip to content

Commit

Permalink
(ma) added testing for OPTIMADEAdjuster tracking of references wh…
Browse files Browse the repository at this point in the history
…en present
  • Loading branch information
amkrajewski committed Oct 13, 2024
1 parent c9effc9 commit 5faac96
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pysipfenn/tests/test_ModelAdjusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ def testEndpointOverride(self):
'elements HAS "Hf" AND elements HAS "Mo" AND elements HAS "Zr"',
parallelWorkers=2)

self.assertGreaterEqual(len(self.ma2.comps), 0, "No compositions were found, thus no data was fetched.")
self.assertGreaterEqual(len(self.ma2.names), 0, "No names were found, thus no data was fetched.")
self.assertGreaterEqual(
self.assertGreater(len(self.ma2.comps), 0, "No compositions were found, thus no data was fetched.")
self.assertGreater(len(self.ma2.names), 0, "No names were found, thus no data was fetched.")
self.assertGreater(
len(self.ma2.descriptorData), 0,
"No descriptor data was found. If the other asserts passed, this is likely a bug in the featurization "
"or structural data has been made incompatible or otherwise corrupted.")
"or structural data has been made incompatible or otherwise corrupted.")

for ref in self.ma2.references:
self.assertGreater(len(ref), 0, "No references were found for the datapoint despite Alexendria being used and having them for this test case as of writing this (and very likely into the future).")

0 comments on commit 5faac96

Please sign in to comment.