Skip to content

Commit b639671

Browse files
Zikkyingcursoragent
andcommitted
Fix validate_interaction test for required VASP potcar_prefix.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b5a253c commit b639671

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_skill_scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ def test_validate_interaction(self):
417417
errors, warnings = self.validator.validate_interaction(
418418
{"type": "vasp", "potcars": {}}
419419
)
420-
self.assertFalse(errors)
421-
self.assertTrue(any("potcar_prefix" in warning for warning in warnings))
420+
self.assertTrue(any("potcar_prefix" in error for error in errors))
421+
self.assertFalse(warnings)
422422

423423
def test_validate_property_required_fields(self):
424424
cases = (

0 commit comments

Comments
 (0)