Skip to content

Commit

Permalink
chore: remove warnings for assertNotRegexpMatches method (#32753)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Velásquez <[email protected]>
  • Loading branch information
diegovr and Diego Velásquez authored Jul 27, 2023
1 parent e4a1039 commit e92e0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/lib/xblock/tagging/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<select") # lint-amnesty, pylint: disable=deprecated-method
self.assertNotRegex(video_html, "<select")

@ddt.data(AsideUsageKeyV1, AsideUsageKeyV2)
def test_handle_requests(self, aside_key_class):
Expand Down

0 comments on commit e92e0e2

Please sign in to comment.