From f839d1364f2ea4aad96d5a33ace39d7314d27a3c Mon Sep 17 00:00:00 2001 From: Alex de Landgraaf Date: Tue, 2 Jan 2024 19:25:36 +0100 Subject: [PATCH] [#1986] Fixing test --- src/open_inwoner/accounts/tests/test_profile_views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/open_inwoner/accounts/tests/test_profile_views.py b/src/open_inwoner/accounts/tests/test_profile_views.py index 5d6c4d09ae..9d7a398535 100644 --- a/src/open_inwoner/accounts/tests/test_profile_views.py +++ b/src/open_inwoner/accounts/tests/test_profile_views.py @@ -124,7 +124,8 @@ def test_mydata_not_shown_without_digid(self): response = self.app.get(self.url, user=self.user) self.assertNotContains(response, _("My details")) - def test_active_user_notifications_are_shown(self): + @patch("open_inwoner.cms.utils.page_display._is_published", return_value=True) + def test_active_user_notifications_are_shown(self, mock_page_display): user = UserFactory( bsn="999993847", first_name="name",