Skip to content

Commit

Permalink
Fix BeautifulSoup 4 warnings (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve authored Apr 24, 2024
1 parent 6e0d7e9 commit 64ce9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ def test_checkbox(self):
)
checkbox = self._select_one_element(form_check, "input", "The checkbox should be inside the .form-check")
self.assertIn("form-check-input", checkbox["class"], "The checkbox should have the class 'form-check-input'.")
label = checkbox.nextSibling
label = checkbox.next_sibling
self.assertIsNotNone(label, "The label should be rendered after the checkbox.")
self.assertEqual(label.name, "label", "After the checkbox there should be a label.")
self.assertEqual(
label["for"], checkbox["id"], "The for attribute of the label should be the id of the checkbox."
)
help_text = label.nextSibling
help_text = label.next_sibling
self.assertIsNotNone(help_text, "The help text should be rendered after the label.")
self.assertEqual(help_text.name, "small", "The help text should be rendered as <small> tag.")
self.assertIn("form-text", help_text["class"], "The help text should have the class 'form-text'.")
Expand Down

0 comments on commit 64ce9f7

Please sign in to comment.