コード例 #1
0
ファイル: fixtures.py プロジェクト: essobi/aiorq
def access_self():

    assert get_current_job() is not None
コード例 #2
0
ファイル: fixtures.py プロジェクト: dveselov/aiorq
def access_self():

    assert get_current_job() is not None
コード例 #3
0
ファイル: test_job.py プロジェクト: essobi/aiorq
def test_job_access_outside_job_fails():
    """The current job is accessible only within a job context."""

    assert not (yield from get_current_job())