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
810445d1
Commit
810445d1
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
228e09a9
No related branches found
No related tags found
2 merge requests
!71
REL: RElease v0.2.0
,
!5
FIX: use identifiable instead of record
Pipeline
#29356
passed
2 years 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_tool.py
+4
-4
4 additions, 4 deletions
unittests/test_tool.py
with
4 additions
and
4 deletions
unittests/test_tool.py
+
4
−
4
View file @
810445d1
...
@@ -520,10 +520,10 @@ def test_all_references_are_existing_already(crawler):
...
@@ -520,10 +520,10 @@ def test_all_references_are_existing_already(crawler):
.
add_property
(
'
b
'
,
db
.
Record
(
id
=
123
)))
.
add_property
(
'
b
'
,
db
.
Record
(
id
=
123
)))
# entity to be referenced in the following
# entity to be referenced in the following
a
=
db
.
Record
(
name
=
"
C
"
).
add_parent
(
"
C
"
).
add_property
(
"
d
"
,
12311
)
a
=
db
.
Record
(
name
=
"
C
"
).
add_parent
(
"
C
"
).
add_property
(
"
d
"
,
12311
)
# one ref with id one with Entity without id (but not identifying) ->
check
# one ref with id one with Entity without id (but not identifying) ->
fail
assert
crawler
.
all_references_are_existing_already
(
db
.
Record
(
name
=
"
C
"
).
add_parent
(
"
C
"
)
assert
not
crawler
.
all_references_are_existing_already
(
db
.
Record
(
name
=
"
C
"
).
add_parent
(
"
C
"
)
.
add_property
(
'
d
'
,
123
)
.
add_property
(
'
d
'
,
123
)
.
add_property
(
'
e
'
,
a
))
.
add_property
(
'
e
'
,
a
))
# one ref with id one with Entity without id (mixed) -> fail
# one ref with id one with Entity without id (mixed) -> fail
assert
not
crawler
.
all_references_are_existing_already
(
db
.
Record
(
name
=
"
D
"
).
add_parent
(
"
D
"
)
assert
not
crawler
.
all_references_are_existing_already
(
db
.
Record
(
name
=
"
D
"
).
add_parent
(
"
D
"
)
...
...
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