Commit 5d6e27ca authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

insert: monotonicity issue was fixed in tshistory

parent 589444ff57c9
......@@ -52,9 +52,9 @@ def test_non_monotonic_autodiff(engine, tsh):
s2 = pd.Series([2, 3.1], index=[utcdt(2018, 1, 2), utcdt(2018, 1, 3)])
tsh.insert(engine, s1, 'nmdiff', 'Babar')
with pytest.raises(AssertionError) as err:
tsh.insert(engine, s2, 'nmdiff', 'Celeste')
assert err.value.args[0] == 'The index is not monotonic'
# all is well, but we have to index sort the intermediate diff
# in .insert
tsh.insert(engine, s2, 'nmdiff', 'Celeste')
def test_differential(engine, tsh):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment