(PC-34345)[API] setup celery tasks for mails #11134
GitHub Actions / Pytest Report
failed
Feb 6, 2025 in 0s
1092 tests run, 1090 passed, 0 skipped, 2 failed.
Annotations
Check failure on line 1730 in tests/routes/backoffice/offers_test.py
github-actions / Pytest Report
tests/routes/backoffice/offers_test.py.test_reject_offer
assert 0 == 2
+ where 0 = len([])
+ where [] = mails_testing.outbox
Raw output
tests/routes/backoffice/offers_test.py:1751: in test_reject_offer
assert len(mails_testing.outbox) == 2
E assert 0 == 2
E + where 0 = len([])
E + where [] = mails_testing.outbox
Check failure on line 1811 in tests/routes/backoffice/offers_test.py
github-actions / Pytest Report
tests/routes/backoffice/offers_test.py.test_batch_reject_offers
AssertionError: assert 2 == 4
+ where 2 = len([{'To': 'venue1032@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_ADDRESS': 'Le Petit Rintintin 1032 - 1 boulevard Poissonnière 75002 Paris', 'OFFER_NAME': 'Offer 598', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/599/recapitulatif', ...}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 30, 'id_prod': 30, 'send_to_ehp': True, ...}, ...}, {'To': 'venue1033@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_NAME': 'Offer 599', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/600/recapitulatif', 'VENUE_NAME': 'Le Petit Rintintin 1033'}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 34, 'id_prod': 34, 'send_to_ehp': True, ...}, ...}])
+ where [{'To': 'venue1032@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_ADDRESS': 'Le Petit Rintintin 1032 - 1 boulevard Poissonnière 75002 Paris', 'OFFER_NAME': 'Offer 598', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/599/recapitulatif', ...}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 30, 'id_prod': 30, 'send_to_ehp': True, ...}, ...}, {'To': 'venue1033@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_NAME': 'Offer 599', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/600/recapitulatif', 'VENUE_NAME': 'Le Petit Rintintin 1033'}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 34, 'id_prod': 34, 'send_to_ehp': True, ...}, ...}] = mails_testing.outbox
Raw output
tests/routes/backoffice/offers_test.py:1836: in test_batch_reject_offers
assert len(mails_testing.outbox) == 4
E AssertionError: assert 2 == 4
E + where 2 = len([{'To': 'venue1032@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_ADDRESS': 'Le Petit Rintintin 1032 - 1 boulevard Poissonnière 75002 Paris', 'OFFER_NAME': 'Offer 598', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/599/recapitulatif', ...}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 30, 'id_prod': 30, 'send_to_ehp': True, ...}, ...}, {'To': 'venue1033@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_NAME': 'Offer 599', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/600/recapitulatif', 'VENUE_NAME': 'Le Petit Rintintin 1033'}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 34, 'id_prod': 34, 'send_to_ehp': True, ...}, ...}])
E + where [{'To': 'venue1032@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_ADDRESS': 'Le Petit Rintintin 1032 - 1 boulevard Poissonnière 75002 Paris', 'OFFER_NAME': 'Offer 598', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/599/recapitulatif', ...}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 30, 'id_prod': 30, 'send_to_ehp': True, ...}, ...}, {'To': 'venue1033@example.net', 'params': {'IS_COLLECTIVE_OFFER': False, 'OFFER_NAME': 'Offer 599', 'PC_PRO_OFFER_LINK': 'http://localhost:3001/offre/individuelle/600/recapitulatif', 'VENUE_NAME': 'Le Petit Rintintin 1033'}, 'reply_to': None, 'template': {'enable_unsubscribe': False, 'id_not_prod': 34, 'id_prod': 34, 'send_to_ehp': True, ...}, ...}] = mails_testing.outbox
Loading