From 177da7a5a948409f5facd6d20d3955c00c6f96a7 Mon Sep 17 00:00:00 2001 From: sscivier <93647847+sscivier@users.noreply.github.com> Date: Mon, 17 Oct 2022 12:11:52 +0100 Subject: [PATCH] Fixed naming problem Fixed naming issue in lines 356, 359, 360 that cause a 'test not found' error. Argument to test_patient_normalise function needed to be 'raises'. --- _episodes/04-diagnosing-issues-improving-robustness.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_episodes/04-diagnosing-issues-improving-robustness.md b/_episodes/04-diagnosing-issues-improving-robustness.md index 1afbdce..b381a45 100644 --- a/_episodes/04-diagnosing-issues-improving-robustness.md +++ b/_episodes/04-diagnosing-issues-improving-robustness.md @@ -353,11 +353,11 @@ argument of the right type, but an inappropriate value. None, ), ]) -def test_patient_normalise(test, expected, expected_error): +def test_patient_normalise(test, expected, raises): """Test normalisation works for arrays of one and positive integers.""" from inflammation.models import patient_normalise - if expected_error: - with pytest.raises(expected_error): + if raises: + with pytest.raises(raises): npt.assert_almost_equal(np.array(expected), patient_normalise(np.array(test)), decimal=2) else: npt.assert_almost_equal(np.array(expected), patient_normalise(np.array(test)), decimal=2)