Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _episodes/04-diagnosing-issues-improving-robustness.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down