[damned-lies/develop] tests: update render people avatar class
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/develop] tests: update render people avatar class
- Date: Thu, 6 Oct 2022 14:03:45 +0000 (UTC)
commit 0694322102dd4f5705cd6e935769b0c038cc926b
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Thu Oct 6 16:03:40 2022 +0200
tests: update render people avatar class
people/tests.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/people/tests.py b/people/tests.py
index 0b54dcd3..d97a583a 100644
--- a/people/tests.py
+++ b/people/tests.py
@@ -92,7 +92,7 @@ class PeopleTestCase(TestCase):
self.assertContains(
response,
'<a aria-expanded="false" aria-haspopup="true" role="button" data-toggle="dropdown"
class="dropdown-toggle'
- ' hidden-xs avatar" href="%s"><img class="img-circle" alt="generic person icon"'
+ ' hidden-xs avatar" href="%s"><img class="rounded-circle" alt="generic person icon"'
' src="/static/img/nobody.png"></a>' % (reverse("person_detail_username", args=[pn.username])),
html=True,
)
@@ -202,7 +202,7 @@ class PeopleTestCase(TestCase):
pn.image = "http://www.example.org/my_image.png"
self.assertHTMLEqual(
people.people_image(pn),
- '<img class="img-circle" alt="John Nothing" onerror="this.onerror = null; '
+ '<img class="rounded-circle" alt="John Nothing" onerror="this.onerror = null; '
'this.src=\'/static/img/nobody.png\'" src="http://www.example.org/my_image.png" />',
)
pn.last_name = "<script>Some XSS content</script>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]