Esempio n. 1
0
 def test_ic_errors(self, obj):
     with pytest.raises(TypeError):
         get_maxima_list(obj)
Esempio n. 2
0
 def test_points_errors(self, obj, tic):
     with pytest.raises(TypeError):
         get_maxima_list(tic, points=obj)
Esempio n. 3
0
 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