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
b6f88996
Commit
b6f88996
authored
5 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
TST: Extend test for
https://gitlab.com/linkahead/linkahead-pylib/-/issues/119
parent
9e12c3ed
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!84
Add test for https://gitlab.com/linkahead/linkahead-pylib/-/issues/119
Pipeline
#58578
passed
5 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_issues_pylib.py
+6
-1
6 additions, 1 deletion
tests/test_issues_pylib.py
with
6 additions
and
1 deletion
tests/test_issues_pylib.py
+
6
−
1
View file @
b6f88996
...
...
@@ -36,7 +36,7 @@ import pytest
from
linkahead
import
administration
as
admin
from
linkahead.exceptions
import
(
TransactionError
,
HTTPClientError
)
from
linkahead.apiutils
import
empty_diff
,
merge_entities
from
linkahead.apiutils
import
compare_entities
,
empty_diff
,
merge_entities
CURATOR_ROLE
=
"
curator
"
...
...
@@ -156,9 +156,14 @@ def test_gitlab_com_119():
# Ensure rec1 has prop, rec2 does not
assert
not
empty_diff
(
rec1
,
rec2
)
assert
len
(
rec2
.
properties
)
==
0
diff1
,
diff2
=
compare_entities
(
rec1
,
rec2
)
assert
prop
.
id
in
diff1
[
"
properties
"
]
assert
None
not
in
diff1
[
"
properties
"
]
assert
len
(
diff2
[
"
properties
"
])
==
0
# Merge and check rec2 now has prop
merge_entities
(
rec2
,
rec1
)
assert
rec2
.
get_property
(
prop
)
is
not
None
assert
empty_diff
(
rec1
.
get_property
(
prop
),
rec2
.
get_property
(
prop
))
...
...
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