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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Python Integration Tests
Merge requests
!58
TST for server#166
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
TST for server#166
f-issue-166
into
dev
Overview
0
Commits
1
Pipelines
4
Changes
1
Merged
TST for server#166
Timm Fitschen
requested to merge
f-issue-166
into
dev
Mar 30, 2023
Overview
0
Commits
1
Pipelines
4
Changes
1
Summary
Tests for
caosdb-server!88 (merged)
Check List for the Author
All automated tests pass
Reference related issues
Check List for the Reviewer
I understand the intent of this MR
All automated tests pass
Edited
Mar 31, 2023
by
Henrik tom Wörden
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
1e6d6d85
1 commit,
Mar 30, 2023
1 file
+
24
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tests/test_issues_server.py
+
24
−
0
View file @ 1e6d6d85
Edit in single-file editor
Open in Web IDE
Show full file
@@ -1202,3 +1202,27 @@ def test_144():
assert
isinstance
(
value
,
float
)
assert
value
==
1e23
assert
value
==
1e+23
def
test_166
():
"""
https://gitlab.com/caosdb/caosdb-server/-/issues/166
"""
db
.
RecordType
(
name
=
"
exists
"
).
insert
()
db
.
Property
(
name
=
"
exists_property
"
,
datatype
=
db
.
INTEGER
).
insert
()
db
.
RecordType
(
name
=
"
RT1
"
).
add_parent
(
"
exists
"
).
insert
()
db
.
RecordType
(
name
=
"
RT2
"
).
add_parent
(
"
exists
"
).
add_property
(
"
exists_property
"
,
32453
).
insert
()
with
pytest
.
raises
(
TransactionError
)
as
cm
:
db
.
Record
(
name
=
"
RT3
"
).
add_parent
(
"
notexists
"
).
insert
()
assert
[
e
.
msg
for
e
in
cm
.
value
.
errors
]
==
[
"
Entity has unqualified parents.
"
]
with
pytest
.
raises
(
TransactionError
)
as
cm
:
db
.
Record
(
name
=
"
RT4
"
).
add_parent
(
"
exists
"
).
add_property
(
"
notexists
"
,
234243
).
insert
()
assert
[
e
.
msg
for
e
in
cm
.
value
.
errors
]
==
[
"
Entity has unqualified properties.
"
]
with
pytest
.
raises
(
TransactionError
)
as
cm
:
db
.
Record
(
name
=
"
RT5
"
).
add_parent
(
"
notexists
"
).
add_property
(
"
exists_property
"
,
234243
).
insert
()
assert
[
e
.
msg
for
e
in
cm
.
value
.
errors
]
==
[
"
Entity has unqualified parents.
"
]
Loading