예제 #1
0
def test_local_boundaries_raises_error_non_monotonic(time, index):
    with pytest.raises(ValueError, match="Data do not monotonically"):
        rp._local_boundaries(time, index, 1.0)
예제 #2
0
def test_local_boundaries(time, index, span, expected):
    actual = rp._local_boundaries(time, index, span)
    assert expected == actual
예제 #3
0
def test_local_boundaries_raises_warning(time, index, span):
    with pytest.warns(UserWarning, match="Unable to find"):
        rp._local_boundaries(time, index, span)