From 6ecccefffcb5027ec39de6a1c97a2400a2ec699b Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Fri, 6 Oct 2023 18:15:41 +0200 Subject: [PATCH] Fix tests --- api/tests/integ/test_incidents.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/tests/integ/test_incidents.py b/api/tests/integ/test_incidents.py index 8b29886f..c008c47a 100644 --- a/api/tests/integ/test_incidents.py +++ b/api/tests/integ/test_incidents.py @@ -140,6 +140,7 @@ def test_crud_general(cleanup, client, adminsession, usersession): expected["start_time"] = "2020-01-02T00:00:00Z" expected["published"] = True expected["mine"] = 0 + expected["email_address"] = None # anon cannot see the email assert i == expected # Delete as admin @@ -201,7 +202,7 @@ def test_crud_user_create(cleanup, client, adminsession, usersession): ], "published": False, "reported_by": "ooni", - "email_address": "nick@localhost.local", + "email_address": None, "start_time": "2020-01-01T00:00:00Z", "tags": ["integ-test"], "title": title,