コード例 #1
0
def test_nested():
    assert steps.get_current() is None
    inner_level = step_outer()
    assert steps.get_current() is None
    assert inner_level == 2
コード例 #2
0
def step_a(*, step):
    assert steps.get_current() is not None
    return step.level
コード例 #3
0
def test_single():
    assert steps.get_current() is None
    step_a()
    assert steps.get_current() is None