Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
082bf849
Commit
082bf849
authored
9 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'd
parent
7f85b5e3
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!181
Release 0.9.0
,
!174
XML Converter
Pipeline
#54527
passed
9 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittests/test_xml_converter.py
+2
-4
2 additions, 4 deletions
unittests/test_xml_converter.py
with
2 additions
and
4 deletions
unittests/test_xml_converter.py
+
2
−
4
View file @
082bf849
...
...
@@ -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
"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment