MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_pytest_collect_module_deprecated

Function test_pytest_collect_module_deprecated

testing/deprecated_test.py:16–18  ·  view source on GitHub ↗
(attribute)

Source from the content-addressed store, hash-verified

14@pytest.mark.parametrize("attribute", pytest.collect.__all__) # type: ignore
15# false positive due to dynamic attribute
16def test_pytest_collect_module_deprecated(attribute) -> None:
17 with pytest.warns(DeprecationWarning, match=attribute):
18 getattr(pytest.collect, attribute)
19
20
21@pytest.mark.parametrize("plugin", sorted(deprecated.DEPRECATED_EXTERNAL_PLUGINS))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected