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
18f85fd8
Verified
Commit
18f85fd8
authored
1 year ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
TST: more precise test for deeply nested properties
parent
4b20c8ab
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!68
F server 323
Pipeline
#42709
passed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_issues_server.py
+3
-1
3 additions, 1 deletion
tests/test_issues_server.py
with
3 additions
and
1 deletion
tests/test_issues_server.py
+
3
−
1
View file @
18f85fd8
...
...
@@ -101,12 +101,14 @@ def test_issue_62():
# renaming has to be reflected in Test_Record and Test_Prop
rec
=
db
.
execute_query
(
"
FIND Record Test_Record
"
,
unique
=
True
)
assert
rec
.
parents
[
0
].
name
==
rtb
.
name
assert
rec
.
get_property
(
"
Test_Prop
"
).
datatype
==
rtb
.
name
prop
=
db
.
execute_query
(
"
FIND Property Test_Prop
"
,
unique
=
True
)
assert
prop
.
datatype
==
rtb
.
name
# fails; datatype not updated
# Can't use Test_RTA as datatype anymore
prop2
=
db
.
Property
(
name
=
"
Test_Prop2
"
,
datatype
=
"
Test_RTA
"
)
with
pytest
.
raises
(
TransactionError
):
with
pytest
.
raises
(
TransactionError
)
as
exc
:
prop2
.
insert
()
assert
"
Unknown data type.
"
in
str
(
exc
.
value
)
def
test_issue_85_a
():
...
...
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