@pytest.fixture
def root_xml():
 from openpyxl.xml.functions import Element
 return Element('test')

@ pytest . fixture def root_xml ( ) : from openpyxl . xml . functions import Element return Element ( 'test' )
root xml element <test> .