Example #1
0
def collect(v, context):
    return spy.collect(context)
Example #2
0
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)
Example #3
0
def collect(v, context):
    return spy.collect(context)
Example #4
0
 def collect_nothing_then_something(v, context):
     return [*islice(spy.collect(context), 0), *spy.collect(context)]
Example #5
0
 def collect_twice(v, context):
     return [*islice(spy.collect(context), 2), *spy.collect(context)]
Example #6
0
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)