コード例 #1
0
ファイル: test_core.py プロジェクト: kostyll/spy
def collect(v, context):
    return spy.collect(context)
コード例 #2
0
ファイル: test_core.py プロジェクト: kostyll/spy
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)
コード例 #3
0
ファイル: test_core.py プロジェクト: edk0/spy
def collect(v, context):
    return spy.collect(context)
コード例 #4
0
ファイル: test_core.py プロジェクト: edk0/spy
 def collect_nothing_then_something(v, context):
     return [*islice(spy.collect(context), 0), *spy.collect(context)]
コード例 #5
0
ファイル: test_core.py プロジェクト: edk0/spy
 def collect_twice(v, context):
     return [*islice(spy.collect(context), 2), *spy.collect(context)]
コード例 #6
0
ファイル: test_core.py プロジェクト: edk0/spy
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)