We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca2c70 commit d81c11eCopy full SHA for d81c11e
tests/test_mlip_calculators.py
@@ -88,11 +88,12 @@ def test_invalid_arch():
88
("nequip", "/invalid/path"),
89
("dpa3", "/invalid/path"),
90
("orb", "/invalid/path"),
91
+ ("grace", "/invalid/path"),
92
],
93
)
94
def test_invalid_model_path(arch, model_path):
95
"""Test error raised for invalid model_path."""
- with pytest.raises((ValueError, RuntimeError)):
96
+ with pytest.raises((ValueError, RuntimeError, AssertionError)):
97
choose_calculator(arch=arch, model_path=model_path)
98
99
@@ -138,7 +139,8 @@ def test_invalid_device(arch):
138
139
("dpa3", "cpu", {"model": DPA3_PATH}),
140
("orb", "cpu", {}),
141
("orb", "cpu", {"model": ORB_MODEL}),
- ("grace", "", {}),
142
+ ("grace", "cpu", {}),
143
+ ("grace", "cpu", {"model_path": "GRACE-1L-OAM_2Feb25"}),
144
145
146
def test_extra_mlips(arch, device, kwargs):
0 commit comments