예제 #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())