def filtered_images(): f_images = heatmap.trim_by_date(images(), period()) f_images = heatmap.sort_by_date(f_images) return f_images
def test_trim_by_date_none(images, first_time, last_time): period = TimePeriod(last_time, first_time) trimmed = heatmap.trim_by_date(images, period) assert 0 == len(trimmed)
def test_is_movement_all(point, res, images): images = heatmap.trim_by_date(images, period()) assert res == heatmap.is_movement(images, point, color_thresh=50)
def test_trim_by_date(images, period): trimmed = heatmap.trim_by_date(images, period) assert 5 == len(trimmed)