From 083f78859a8527e87d29617274111b9101139a86 Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Wed, 4 Sep 2024 11:33:55 +0200 Subject: [PATCH] Send all distributed pno emails to CNSP in Datascience --- datascience/src/pipeline/flows/distribute_pnos.py | 2 +- .../tests/test_pipeline/test_flows/test_distribute_pnos.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datascience/src/pipeline/flows/distribute_pnos.py b/datascience/src/pipeline/flows/distribute_pnos.py index e150cfcf4a..8877fc321a 100644 --- a/datascience/src/pipeline/flows/distribute_pnos.py +++ b/datascience/src/pipeline/flows/distribute_pnos.py @@ -651,7 +651,7 @@ def create_email(pno: RenderedPno, test_mode: bool) -> PnoToSend: else: return None else: - to = pno.emails + to = pno.emails + ["cnsp@example.org"] message = create_html_email( to=to, diff --git a/datascience/tests/test_pipeline/test_flows/test_distribute_pnos.py b/datascience/tests/test_pipeline/test_flows/test_distribute_pnos.py index 2a3b27cb61..ab8b0d4538 100644 --- a/datascience/tests/test_pipeline/test_flows/test_distribute_pnos.py +++ b/datascience/tests/test_pipeline/test_flows/test_distribute_pnos.py @@ -1639,7 +1639,7 @@ def test_create_email( assert pno_to_send.message["To"] == "pno.test@email.fr" else: assert ( - pno_to_send.message["To"] == "alternative@email, some.email@control.unit.4" + pno_to_send.message["To"] == "alternative@email, some.email@control.unit.4, cnsp@example.org" ) assert pno_to_send.message["From"] == "monitorfish@test.email" assert pno_to_send.message["Cc"] is None