def test_errors_errors(self, obj, im): with pytest.raises(TypeError): sum_maxima(im, scans=obj)
def test_im_errors(self, obj): with pytest.raises(TypeError): sum_maxima(obj)
def test_points_errors(self, obj, im): with pytest.raises(TypeError): sum_maxima(im, points=obj)
def test_sum_maxima(self, im): new_tic = sum_maxima(im) assert isinstance(new_tic, IonChromatogram) assert new_tic.is_tic()