Merge pull request #6680 from RonnyPfannschmidt/fix-6294-more-docs-for-fromparent

doc: more docs for from_parent
This commit is contained in:
Ronny Pfannschmidt
2020-04-10 13:10:40 +02:00
committed by GitHub
3 changed files with 26 additions and 4 deletions

View File

@@ -37,7 +37,10 @@ FIXTURE_POSITIONAL_ARGUMENTS = PytestDeprecationWarning(
NODE_USE_FROM_PARENT = UnformattedWarning(
PytestDeprecationWarning,
"direct construction of {name} has been deprecated, please use {name}.from_parent",
"Direct construction of {name} has been deprecated, please use {name}.from_parent.\n"
"See "
"https://docs.pytest.org/en/latest/deprecations.html#node-construction-changed-to-node-from-parent"
" for more details.",
)
JUNIT_XML_DEFAULT_FAMILY = PytestDeprecationWarning(