Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Merge requests
!8
F h5 cfood
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
F h5 cfood
f-h5-cfood
into
dev
Overview
1
Commits
137
Pipelines
22
Changes
1
Merged
Henrik tom Wörden
requested to merge
f-h5-cfood
into
dev
3 years ago
Overview
1
Commits
137
Pipelines
22
Changes
1
https://gitlab.com/caosdb/caosdb-advanced-user-tools/-/merge_requests/78
0
0
Merge request reports
Viewing commit
45e24b6e
Prev
Next
Show latest version
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
45e24b6e
up
· 45e24b6e
Henrik tom Wörden
authored
3 years ago
unittests/test_structure_mapping.py
+
1
−
1
View file @ 45e24b6e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -122,7 +122,7 @@ class structureMappingTest(unittest.TestCase):
@@ -122,7 +122,7 @@ class structureMappingTest(unittest.TestCase):
self
.
assertEqual
(
len
(
recd2
.
get_properties
()),
2
)
# number of properties stay unchanged
self
.
assertEqual
(
len
(
recd2
.
get_properties
()),
2
)
# number of properties stay unchanged
for
prop_record
,
prop_em
in
zip
(
recc2
.
get_properties
(),
recd2
.
get_properties
()):
for
prop_record
,
prop_em
in
zip
(
recc2
.
get_properties
(),
recd2
.
get_properties
()):
self
.
assertTrue
(
prop_record
is
emap2
.
to_existing
[
prop_em
.
_cuid
])
self
.
assertTrue
(
prop_record
.
value
is
emap2
.
to_existing
[
prop_em
.
value
.
_cuid
])
# Test target structure
# Test target structure
self
.
assertEqual
(
len
(
recc3
.
get_properties
()),
2
)
# number of properties stay unchanged
self
.
assertEqual
(
len
(
recc3
.
get_properties
()),
2
)
# number of properties stay unchanged
Loading