Example #1
0
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),
    }
Example #2
0
 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),
     }
Example #3
0
 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)
     }
Example #4
0
def data_stats_partial():
    return DataStats(max_length=5, defer_until_full_renewal=False)
Example #5
0
def data_stats_full():
    return DataStats(max_length=5, defer_until_full_renewal=True)
Example #6
0
def data_stats_once():
    return DataStats(max_length=5, learn_once=True)
Example #7
0
def data_stats_continuous():
    return DataStats(max_length=5, learn_once=False)