Exemple #1
0
def test_email_sending_asynchronously(
        transactional_db, celery_app, celery_worker,
        order_with_lines_and_stock):
    order = send_order_confirmation.delay(order_with_lines_and_stock.pk)
    payment = send_payment_confirmation.delay(order_with_lines_and_stock.pk)
    order.get()
    payment.get()
Exemple #2
0
def test_email_sending_asynchronously(
        transactional_db, celery_app, celery_worker, order_with_lines):
    order = send_order_confirmation.delay(
        '*****@*****.**', '/nowhere/to/go', order_with_lines.pk)
    payment = send_payment_confirmation.delay('*****@*****.**', '/nowhere/')
    order.get()
    payment.get()
Exemple #3
0
def test_email_sending_asynchronously(transactional_db, celery_app,
                                      celery_worker, order_with_lines):
    redirect_url = "https://www.example.com"
    order = send_order_confirmation.delay(order_with_lines.pk, redirect_url)
    payment = send_payment_confirmation.delay(order_with_lines.pk)
    order.get()
    payment.get()
def test_email_sending_asynchronously(
        transactional_db, celery_app, celery_worker, order_with_lines):
    order = send_order_confirmation.delay(
        '*****@*****.**', '/nowhere/to/go', order_with_lines.pk)
    payment = send_payment_confirmation.delay('*****@*****.**', '/nowhere/')
    order.get()
    payment.get()
def test_email_sending_asynchronously(email_send, celery_app, celery_worker):
    order = send_order_confirmation.delay('*****@*****.**', '/nowhere/to/go')
    payment = send_payment_confirmation.delay('*****@*****.**', '/nowhere/')
    order.get()
    payment.get()