We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9019d2 commit f3dd139Copy full SHA for f3dd139
tests/unit/pleiades/utils/test_nexus.py
@@ -36,8 +36,8 @@ def test_get_proton_charge_none_input():
36
37
def test_get_proton_charge_missing_proton_charge_key(mock_h5py_file):
38
mock_h5py_file.return_value.__enter__.return_value = {"entry": {}}
39
- with pytest.raises(KeyError):
40
- get_proton_charge("mock_file_path")
+ result = get_proton_charge("mock_file_path")
+ assert result is None
41
42
43
def test_get_proton_charge_dict_valid_case(mock_h5py_file):
0 commit comments