Пример #1
0
def test_valid_if_or_func2(app3, job_id1, job_id2, job_id3):
    """Verify that the valid_if_or option supports the "_func" option

    app_name: {"valid_if_or": {"_func": "python.import.path.to.func"}}
    where the function definition looks like: func(**parsed_job_id)
    """
    enqueue(app3, job_id3, validate_queued=False)
    validate_one_skipped_task(app3, job_id3)
Пример #2
0
def test_valid_if_or_1(app2, job_id1):
    """Invalid tasks should be automatically completed.
    This is a valid_if_or test  (aka passes_filter )... bad naming sorry!"""
    job_id = job_id1.replace('profile', 'content')
    enqueue(app2, job_id, validate_queued=False)
    validate_one_skipped_task(app2, job_id)