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