From e92e0e263b05ce474e53fdefec4075bcbf8590dc Mon Sep 17 00:00:00 2001 From: Diego Velasquez Date: Thu, 27 Jul 2023 05:37:24 -0500 Subject: [PATCH] chore: remove warnings for assertNotRegexpMatches method (#32753) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Diego Velásquez --- cms/lib/xblock/tagging/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/lib/xblock/tagging/test.py b/cms/lib/xblock/tagging/test.py index 783649946d6b..f00d1a53c89b 100644 --- a/cms/lib/xblock/tagging/test.py +++ b/cms/lib/xblock/tagging/test.py @@ -180,11 +180,11 @@ def test_preview_html(self): self.assertEqual(option_values2, ['Learned a few things', 'Learned everything', 'Learned nothing']) # Now ensure the acid_aside is not in the result - self.assertNotRegexpMatches(problem_html, r"data-block-type=[\"\']acid_aside[\"\']") # lint-amnesty, pylint: disable=deprecated-method + self.assertNotRegex(problem_html, r"data-block-type=[\"\']acid_aside[\"\']") # Ensure about video don't have asides video_html = get_preview_fragment(request, self.video, context).content - self.assertNotRegexpMatches(video_html, "