Skip to content

Commit e534937

Browse files
committed
fix failing tests
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent b2216ed commit e534937

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dje/tests/test_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def test_user_admin_form_scope_homepage_layout_choices(self):
449449
card_layout_other = create("CardLayout", self.other_dataspace)
450450

451451
response = self.client.get(url)
452-
expected = '<legend for="id_homepage_layout">Homepage layout:</legend>'
452+
expected = '<label for="id_homepage_layout">Homepage layout</label>'
453453
self.assertContains(response, expected, html=True)
454454
self.assertContains(response, card_layout_nexb.name)
455455
self.assertNotContains(response, card_layout_other.name)

license_library/tests/test_translation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def test_changeview_translation(self):
4444

4545
translation.activate("en")
4646
response = self.client.get(url)
47-
expected = '<legend for="id_license_profile">License profile:</legend>'
47+
expected = '<label for="id_license_profile">License profile</label>'
4848
self.assertContains(response, expected)
4949

5050
translation.activate("en_GB") # Activate the custom translation locale
5151
response = self.client.get(url)
5252
# The verbose part of the label is properly translated.
53-
expected = '<legend for="id_license_profile">Attribution type:</legend>'
53+
expected = '<label for="id_license_profile">Attribution type</label>'
5454
self.assertContains(response, expected)
5555

5656
def test_admin_index_view_translation(self):

0 commit comments

Comments
 (0)