Skip to content

Commit

Permalink
[#447] Improved tests according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
vaszig committed May 9, 2022
1 parent 918063e commit 297725d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/open_inwoner/accounts/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def setUp(self):

def test_password_reset_form_custom_template_is_rendered(self):
response = self.app.get(reverse("password_reset"))
self.assertIn(_("Mijn wachtwoord opnieuw instellen"), response)
self.assertContains(response, _("Mijn wachtwoord opnieuw instellen"))

def test_password_reset_email_contains_proper_data(self):
current_site = Site.objects.get_current()
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_password_reset_confirm_custom_template_is_rendered(self):
confirm_response = self.app.get(
reverse("password_reset_confirm", kwargs={"token": token, "uidb64": uid})
).follow()
self.assertIn(_("Mijn wachtwoord wijzigen"), confirm_response)
self.assertContains(confirm_response, _("Mijn wachtwoord wijzigen"))


class TestPasswordChangeTemplates(WebTest):
Expand Down

0 comments on commit 297725d

Please sign in to comment.