Add note about deprecating record_xml_property
Also make record_xml_property return record_property directly
This commit is contained in:
@@ -250,7 +250,7 @@ def record_property(request):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def record_xml_property(request):
|
||||
def record_xml_property(record_property):
|
||||
"""(Deprecated) use record_property."""
|
||||
import warnings
|
||||
from _pytest import deprecated
|
||||
@@ -260,7 +260,7 @@ def record_xml_property(request):
|
||||
stacklevel=2
|
||||
)
|
||||
|
||||
return record_property(request)
|
||||
return record_property
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
1
changelog/2770.removal.rst
Normal file
1
changelog/2770.removal.rst
Normal file
@@ -0,0 +1 @@
|
||||
``record_xml_property`` fixture is now deprecated in favor of the more generic ``record_property``.
|
||||
Reference in New Issue
Block a user