def test_default_value_to_a_new_key(stash): assert stash['something'] == { 'time': DataStream(max_length=1000), 'data': DataStream(max_length=1000), 'data_hi': DataStats(max_length=1000), 'data_lo': DataStats(max_length=1000), }
def default_item(item_length=1000): return { 'time': DataStream(max_length=item_length), 'data': DataStream(max_length=item_length), 'data_hi': DataStats(max_length=item_length), 'data_lo': DataStats(max_length=item_length), }
def default_item(item_length=1000): return { 'summary': DataStream(max_length=item_length), 'time': DataStream(max_length=item_length), 'data': DataStats(max_length=item_length, defer_until_full_renewal=False) }
def data_stats_partial(): return DataStats(max_length=5, defer_until_full_renewal=False)
def data_stats_full(): return DataStats(max_length=5, defer_until_full_renewal=True)
def data_stats_once(): return DataStats(max_length=5, learn_once=True)
def data_stats_continuous(): return DataStats(max_length=5, learn_once=False)