Remove deprecated pytest.collect module

This commit is contained in:
Ran Benita
2021-12-07 22:14:55 +02:00
parent 4a45a5e983
commit 0f39f11d88
5 changed files with 11 additions and 62 deletions
-7
View File
@@ -10,13 +10,6 @@ from _pytest.pytester import Pytester
from pytest import PytestDeprecationWarning
@pytest.mark.parametrize("attribute", pytest.collect.__all__) # type: ignore
# false positive due to dynamic attribute
def test_pytest_collect_module_deprecated(attribute) -> None:
with pytest.warns(DeprecationWarning, match=attribute):
getattr(pytest.collect, attribute)
@pytest.mark.parametrize("plugin", sorted(deprecated.DEPRECATED_EXTERNAL_PLUGINS))
@pytest.mark.filterwarnings("default")
def test_external_plugins_integrated(pytester: Pytester, plugin) -> None: