From 8de5663bb7d3bcea437d4757aef8e8ada73e5760 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 --- .../accounts/tests/test_profile_views.py | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/open_inwoner/accounts/tests/test_profile_views.py b/src/open_inwoner/accounts/tests/test_profile_views.py index 4ce2b1e1de..85bca7cd7d 100644 --- a/src/open_inwoner/accounts/tests/test_profile_views.py +++ b/src/open_inwoner/accounts/tests/test_profile_views.py @@ -137,30 +137,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_info_eherkenning_user(self): - user = eHerkenningUserFactory( - company_name="Makers and Shakers", - street="Fantasiestraat", - housenumber="42", - postcode="1234 XY", - city="The good place", - ) - response = self.app.get(self.url, user=user) - - self.assertContains(response, "Makers and Shakers") - self.assertContains(response, "Fantasiestraat 42") - self.assertContains(response, "1234 XY The good place") - - doc = PQ(response.content) - - business_section = doc.find("#business-overview")[0] - self.assertEqual(business_section.text, "Bedrijfsgegevens") - - # check personal overview section not displayed - personal_section = doc.find("#personal-overview") - self.assertEqual(personal_section, []) - - 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",