def test_example(celery_app, celery_worker):
    """Simply test our dummy task using celery"""
    res = dummy_task.delay()
    assert res.get() == "OK"
Ejemplo n.º 2
0
def test_celery():
    dummy_task.delay(())
    return status_code.SUCCESS.d, 200