Skip to content

Commit f3dd139

Browse files
committed
update test to match code behavior
1 parent f9019d2 commit f3dd139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/pleiades/utils/test_nexus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def test_get_proton_charge_none_input():
3636

3737
def test_get_proton_charge_missing_proton_charge_key(mock_h5py_file):
3838
mock_h5py_file.return_value.__enter__.return_value = {"entry": {}}
39-
with pytest.raises(KeyError):
40-
get_proton_charge("mock_file_path")
39+
result = get_proton_charge("mock_file_path")
40+
assert result is None
4141

4242

4343
def test_get_proton_charge_dict_valid_case(mock_h5py_file):

0 commit comments

Comments
 (0)