Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Aug 28, 2023
1 parent 23ced10 commit e5a4666
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/core/test_views_userprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def test_userprofile_list_permission_required(self, django_app, volunteer):
def test_userprofile_list(self, django_app, superuser):
response = django_app.get(reverse("core:userprofile_list"), user=superuser)
assert response.status_code == 200
assert response.html.findAll(
string=UserProfile.objects.all().values_list("email", flat=True)
assert all(
email in response.text
for email in UserProfile.objects.all().values_list("email", flat=True)
)
edit_links = [
reverse("core:userprofile_edit", kwargs={"pk": userprofile_id})
Expand Down

0 comments on commit e5a4666

Please sign in to comment.