1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
from __future__ import absolute_import, print_function, division
from petl.util.counting import nrows
from petl.util.timing import progress, log_progress
def test_progress():
# make sure progress doesn't raise exception
table = (('foo', 'bar', 'baz'),
('a', 1, True),
('b', 2, True),
('b', 3))
nrows(progress(table))
def test_log_progress():
# make sure log_progress doesn't raise exception
table = (('foo', 'bar', 'baz'),
('a', 1, True),
('b', 2, True),
('b', 3))
nrows(log_progress(table))
|