@pytest.fixture
def record_xml_property(request):
    request.node.warn(
        code='C3',
        message='record_xml_property is an experimental feature',
    )
    xml = getattr(request.config, "_xml", None)
    if xml is not None:
        node_reporter = xml.node_reporter(request.node.nodeid)
        return node_reporter.add_property
    else:
        def add_property_noop(name, value):
            pass

        return add_property_noop
Retrieves the number of bytes per sector from a TSK volume object.
dataset/ETHPy150Open pytest-dev/pytest/_pytest/junitxml.py/record_xml_property--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/lib/tsk_partition.py/TSKVolumeGetBytesPerSector