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