Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Merge requests
!19
ENH: add resolve_value to Property
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
ENH: add resolve_value to Property
f-resolve-value
into
dev
Overview
0
Commits
17
Pipelines
3
Changes
1
Merged
Henrik tom Wörden
requested to merge
f-resolve-value
into
dev
3 years ago
Overview
0
Commits
17
Pipelines
3
Changes
1
https://gitlab.com/caosdb/caosdb-pylib/-/merge_requests/64
0
0
Merge request reports
Viewing commit
ef5aa42d
Prev
Next
Show latest version
1 file
+
2
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ef5aa42d
up
· ef5aa42d
Alexander Kreft
authored
3 years ago
unittests/test_apiutils.py
+
2
−
4
View file @ ef5aa42d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -72,10 +72,8 @@ def test_id_query():
def
test_resolve_reference
():
original_retrieve_entity_with_id
=
caosdb
.
apiutils
.
retrieve_entity_with_id
def
dummy_entity
(
eid
):
return
db
.
Record
(
id
=
eid
)
caosdb
.
apiutils
.
retrieve_entity_with_id
=
dummy_entity
caosdb
.
apiutils
.
retrieve_entity_with_id
=
lambda
eid
:
db
.
Record
(
id
=
eid
)
prop
=
db
.
Property
(
id
=
1
,
datatype
=
db
.
REFERENCE
,
value
=
100
)
prop
.
is_valid
=
lambda
:
True
items
=
[
200
,
300
,
400
]
Loading