BLD: fix periods calculations and bundle unit-test

This commit is contained in:
lenak25
2018-03-02 00:36:13 +02:00
parent 8be0626fc9
commit 3159ec7dc2
2 changed files with 20 additions and 5 deletions
@@ -107,14 +107,14 @@ class TestSuiteBundle:
print('saved {} test results: {}'.format(end_dt, folder))
assert_frame_equal(
right=data['bundle'],
left=data['exchange'],
right=data['bundle'][:-1],
left=data['exchange'][:-1],
check_less_precise=1,
)
try:
assert_frame_equal(
right=data['bundle'],
left=data['exchange'],
right=data['bundle'][:-1],
left=data['exchange'][:-1],
check_less_precise=min([a.decimals for a in assets]),
)
except Exception as e: