Skip to content

Commit

Permalink
fix: adapt tests to zptlint
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Mar 17, 2023
1 parent 741d414 commit a3cdc61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plone/app/z3cform/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ def test_related_items_widget_display_template(self):
self.assertTrue(template.filename.endswith("relateditems_display.pt"))
html = template(single)
self.assertIn(
'<span class="contenttype-relationstype state-missing-value url">A Target</span>',
'<span class="contenttype-relationstype state-missing-value url" >A Target</span>',
html,
)

Expand All @@ -1391,11 +1391,11 @@ def test_related_items_widget_display_template(self):
self.assertTrue(template.filename.endswith("relateditems_display.pt"))
html = template(multiple)
self.assertIn(
'<span class="contenttype-relationstype state-missing-value url">A Target</span>',
'<span class="contenttype-relationstype state-missing-value url" >A Target</span>',
html,
)
self.assertIn(
'<span class="contenttype-document state-missing-value url">A Document</span>',
'<span class="contenttype-document state-missing-value url" >A Document</span>',
html,
)

Expand Down Expand Up @@ -1963,6 +1963,6 @@ class TestForm(AutoExtensibleForm, EditForm):

render = TestForm(self.layer["portal"], self.layer["request"])
self.assertIn(
'empty foo" data-fieldname="form.widgets.my_date"',
'empty foo" id="formfield-form-widgets-my_date" data-fieldname="form.widgets.my_date"',
render(),
)

0 comments on commit a3cdc61

Please sign in to comment.