Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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 Python Integration Tests
Commits
bd830295
Commit
bd830295
authored
5 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
TST: Extend to/from_xml consistency checks
parent
4328bc6a
No related branches found
No related tags found
1 merge request
!82
Add test for https://gitlab.com/linkahead/linkahead-pylib/-/issues/89
Pipeline
#57997
passed
5 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
tests/test_issues_pylib.py
+5
-2
5 additions, 2 deletions
tests/test_issues_pylib.py
with
5 additions
and
2 deletions
tests/test_issues_pylib.py
+
5
−
2
View file @
bd830295
...
...
@@ -78,7 +78,8 @@ def test_gitlab_com_89():
https://gitlab.indiscale.com/caosdb/customers/f-fit/management/-/issues/81
"""
# We need a container generated with data from the server
db
.
RecordType
(
name
=
"
TestType
"
).
insert
()
rt
=
db
.
RecordType
(
name
=
"
TestType
"
)
rt
.
insert
()
container
=
db
.
execute_query
(
"
FIND RECORDTYPE *
"
)
# With this container, to_xml, xml2str, and from_xml should not generate
...
...
@@ -86,7 +87,9 @@ def test_gitlab_com_89():
with
warnings
.
catch_warnings
():
warnings
.
simplefilter
(
"
error
"
)
xml_str
=
linkahead
.
common
.
utils
.
xml2str
(
container
.
to_xml
())
db
.
Container
.
from_xml
(
xml_str
)
cont_from_xml
=
db
.
Container
.
from_xml
(
xml_str
)
assert
len
(
cont_from_xml
)
==
len
(
container
)
assert
cont_from_xml
[
0
].
name
==
rt
.
name
# @pytest.mark.xfail(reason="Entities with many, long, properties: "
...
...
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