def test_build_celery_invalid_periodic_key():
    cron_schedule = {'non_valid_key': '* * * * *'}
    with pytest.raises(WorkflowSyntaxError):
        build_celery_schedule('workflow_invalid_key', cron_schedule)
def test_build_celery_invalid_periodic_key():
    cron_schedule = {'non_valid_key': '* * * * *'}
    with pytest.raises(WorkflowSyntaxError):
        build_celery_schedule('workflow_invalid_key', cron_schedule)