From 64ce9f74f07439f2da1c4b1319dab14a898bcc60 Mon Sep 17 00:00:00 2001
From: Dylan Verheul <dylan@dyve.net>
Date: Wed, 24 Apr 2024 11:01:02 +0200
Subject: [PATCH] Fix BeautifulSoup 4 warnings (#721)

---
 tests/test_forms.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_forms.py b/tests/test_forms.py
index 622991ef..0da833c8 100644
--- a/tests/test_forms.py
+++ b/tests/test_forms.py
@@ -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'.")