def test_find_ts_raises_when_scalar(): with pytest.raises(TypeError): find_ts(4)
def test_find_ts(): assert find_ts(np.array([0, 86400, 172800])) == 86400