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",