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: 6 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ def test_daily_mean_integers():
# Need to use Numpy testing functions to compare arrays
npt.assert_array_equal(daily_mean(test_input), test_result)

def test_daily_min_string():
'''Test for TypeError when we pass a string'''
from inflammation.models import daily_min

with pytest.raises(TypeError):
error_expected = daily_min([['abd', 'ads'], ['asd', 'auhs']])