From b385c1f0ce8d07674840cacc239f1bfd3bf1225e Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:23:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20Update=20deprecated=20u?= =?UTF-8?q?nittest=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contrib/digid/tests/test_auth_procedure.py | 2 +- .../eherkenning/tests/test_eherkenning_auth.py | 2 +- .../contrib/eherkenning/tests/test_eidas_auth.py | 2 +- .../emails/tests/test_confirmation_email.py | 14 +++++++------- src/openforms/emails/tests/test_send_mail_html.py | 4 ++-- src/openforms/forms/tests/test_api_forms.py | 2 +- ..._fetching_form_variable_values_from_services.py | 2 +- .../submissions/tests/test_variables/test_model.py | 2 +- src/openforms/translations/tests/test_utils.py | 12 ++++++------ src/stuf/stuf_bg/tests/test_client.py | 2 +- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/openforms/authentication/contrib/digid/tests/test_auth_procedure.py b/src/openforms/authentication/contrib/digid/tests/test_auth_procedure.py index 324c6cbcde..9675f7968b 100644 --- a/src/openforms/authentication/contrib/digid/tests/test_auth_procedure.py +++ b/src/openforms/authentication/contrib/digid/tests/test_auth_procedure.py @@ -386,7 +386,7 @@ def test_cancel_login( form_url.args["_digid-message"] = "login-cancelled" - self.assertEquals( + self.assertEqual( response.redirect_chain[-1], (form_url.url, 302), ) diff --git a/src/openforms/authentication/contrib/eherkenning/tests/test_eherkenning_auth.py b/src/openforms/authentication/contrib/eherkenning/tests/test_eherkenning_auth.py index 08313d2ad8..70807c4299 100644 --- a/src/openforms/authentication/contrib/eherkenning/tests/test_eherkenning_auth.py +++ b/src/openforms/authentication/contrib/eherkenning/tests/test_eherkenning_auth.py @@ -418,7 +418,7 @@ def test_cancel_login( response = self.client.get(url, follow=True) form_url.args["_eherkenning-message"] = "login-cancelled" - self.assertEquals( + self.assertEqual( response.redirect_chain[-1], (form_url.url, 302), ) diff --git a/src/openforms/authentication/contrib/eherkenning/tests/test_eidas_auth.py b/src/openforms/authentication/contrib/eherkenning/tests/test_eidas_auth.py index 58c76c2ea6..f39bb7a6f4 100644 --- a/src/openforms/authentication/contrib/eherkenning/tests/test_eidas_auth.py +++ b/src/openforms/authentication/contrib/eherkenning/tests/test_eidas_auth.py @@ -296,7 +296,7 @@ def test_cancel_login( form_url.args["_eidas-message"] = "login-cancelled" - self.assertEquals( + self.assertEqual( response.redirect_chain[-1], (form_url.url, 302), ) diff --git a/src/openforms/emails/tests/test_confirmation_email.py b/src/openforms/emails/tests/test_confirmation_email.py index 7d77e2b437..fa09e93b90 100644 --- a/src/openforms/emails/tests/test_confirmation_email.py +++ b/src/openforms/emails/tests/test_confirmation_email.py @@ -678,7 +678,7 @@ def test_send_confirmation_mail_text_kitchensink(self, appointment_plugin_mock): # process to keep tests sane (random tokens) text = message.body.rstrip() text = re.sub(url_exp, "#URL#", text) - self.assertEquals(expected_text, text) + self.assertEqual(expected_text, text) self.assertNotIn("", message.body) # html alternative self.assertEqual(len(message.alternatives), 1) content, mime_type = message.alternatives[0] - self.assertEquals(mime_type, "text/html") + self.assertEqual(mime_type, "text/html") self.assertIn("

My Message

", content) self.assertIn("