Skip to content

Commit

Permalink
[#1986] Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
alextreme committed Jan 9, 2024
1 parent 270a573 commit 8de5663
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions src/open_inwoner/accounts/tests/test_profile_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8de5663

Please sign in to comment.