Add note about deprecating record_xml_property

Also make record_xml_property return record_property directly
This commit is contained in:
Bruno Oliveira 2018-02-21 17:45:52 -03:00
parent 8b49ddfa58
commit d838193d2d
2 changed files with 3 additions and 2 deletions

View File

@ -250,7 +250,7 @@ def record_property(request):
@pytest.fixture @pytest.fixture
def record_xml_property(request): def record_xml_property(record_property):
"""(Deprecated) use record_property.""" """(Deprecated) use record_property."""
import warnings import warnings
from _pytest import deprecated from _pytest import deprecated
@ -260,7 +260,7 @@ def record_xml_property(request):
stacklevel=2 stacklevel=2
) )
return record_property(request) return record_property
@pytest.fixture @pytest.fixture

View File

@ -0,0 +1 @@
``record_xml_property`` fixture is now deprecated in favor of the more generic ``record_property``.