Skip to content
Snippets Groups Projects
Commit 082bf849 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

STY: autopep8'd

parent 7f85b5e3
Branches
Tags
2 merge requests!181Release 0.9.0,!174XML Converter
Pipeline #54527 passed
......@@ -75,7 +75,7 @@ def converter_registry():
"XMLTextNode": {
"converter": "XMLTextNodeConverter",
"package": "caoscrawler.xml_converter"},
}
}
for key, value in converter_registry.items():
module = importlib.import_module(value["package"])
......@@ -101,6 +101,7 @@ subtree:
src: test2
"""), "TestXMLTagConverter", converter_registry)
@pytest.fixture
def basic_xpath_xmltag_converter(converter_registry):
return XMLTagConverter(yaml.safe_load("""
......@@ -124,7 +125,6 @@ subtree:
"""), "TestXMLTagConverter", converter_registry)
def test_simple_xml(basic_xmltag_converter):
"""
Test for basic xml conversion functionality.
......@@ -210,8 +210,6 @@ def test_nested_simple_xml(basic_xmltag_converter, basic_xpath_xmltag_converter)
assert isinstance(children[0], XMLTagElement)
assert children[0].name == "img"
xml_text = """
<a href="test1" alt="no link">
test <img src="test2">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment