We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 281f5a6 commit e69494dCopy full SHA for e69494d
pyproject.toml
@@ -154,3 +154,8 @@ commands =
154
filterwarnings =
155
ignore:\nCSS selector pattern:UserWarning
156
"""
157
+
158
+[tool.pytest.ini_options]
159
+filterwarnings = [
160
+ "ignore:The 'strip_cdata':DeprecationWarning"
161
+]
tests/test_extra/test_soup_contains.py
@@ -304,6 +304,11 @@ def test_contains_warn(self):
304
['2'],
305
flags=util.HTML
306
)
307
+ found = False
308
+ target = "The pseudo class ':contains' is deprecated, ':-soup-contains' should be used moving forward."
309
+ for warn in w:
310
+ if target in str(warn.message):
311
+ found = True
312
+ break
313
# Verify some things
- self.assertTrue(len(w) == 1)
- self.assertTrue(issubclass(w[-1].category, FutureWarning))
314
+ self.assertTrue(found)
0 commit comments