def test_ic_errors(self, obj): with pytest.raises(TypeError): get_maxima_list(obj)
def test_points_errors(self, obj, tic): with pytest.raises(TypeError): get_maxima_list(tic, points=obj)
def test_get_maxima_list(self, tic): maxima_iist = get_maxima_list(tic) assert isinstance(maxima_iist, list) assert isinstance(maxima_iist[0], list) assert isinstance(maxima_iist[0][0], float) assert maxima_iist[0][0] == 2.10800014436