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 cc19c07 commit bac589dCopy full SHA for bac589d
src/diffpy/labpdfproc/tests/test_tools.py
@@ -30,8 +30,8 @@ def test_set_wavelength(inputs, expected):
30
]
31
32
33
-@pytest.mark.parametrize("inputs", params3)
34
-def test_set_wavelength_bad(inputs):
+@pytest.mark.parametrize("inputs, msg", params3)
+def test_set_wavelength_bad(inputs, msg):
35
actual_args = argparse.Namespace(wavelength=inputs[0], anode_type=inputs[1])
36
- with pytest.raises(ValueError):
+ with pytest.raises(ValueError, match=msg[0]):
37
actual_args.wavelength = set_wavelength(actual_args)
0 commit comments