示例#1
0
文件: fixtures.py 项目: essobi/aiorq
def access_self():

    assert get_current_job() is not None
示例#2
0
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())