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
Merge requests
!12
TST: add tests for
caosdb-server#170
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
TST: add tests for
caosdb-server#170
f-server-170
into
dev
Overview
0
Commits
4
Pipelines
7
Changes
1
Merged
Timm Fitschen
requested to merge
f-server-170
into
dev
3 years ago
Overview
0
Commits
4
Pipelines
7
Changes
1
Expand
Tests for
caosdb-server!28 (merged)
0
0
Merge request reports
Compare
dev
version 3
b755c81d
3 years ago
version 2
9b42e9a5
3 years ago
version 1
f080f121
3 years ago
dev (base)
and
latest version
latest version
8d998ae7
4 commits,
3 years ago
version 3
b755c81d
3 commits,
3 years ago
version 2
9b42e9a5
2 commits,
3 years ago
version 1
f080f121
1 commit,
3 years ago
1 file
+
44
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tests/test_issues_server.py
+
44
−
0
Options
@@ -257,3 +257,47 @@ def test_issue_131():
"
FIND Entity WITH {} > 100.5 €
"
.
format
(
prop
.
name
))]
assert
rec
.
id
in
result_ids
def
test_issue_170
():
"""
update scalar data type to list data type
"""
p
=
db
.
Property
(
name
=
"
TestProp1
"
,
datatype
=
db
.
LIST
(
db
.
INTEGER
))
p
.
value
=
[
1
,
2
]
p
.
insert
()
p2
=
db
.
execute_query
(
"
FIND TestProp1
"
,
unique
=
True
)
assert
p2
.
datatype
==
db
.
LIST
(
db
.
INTEGER
)
assert
p2
.
value
==
[
1
,
2
]
p
.
description
=
"
TestDescription
"
p
.
update
()
# this failed
p2
=
db
.
execute_query
(
"
FIND TestProp1
"
,
unique
=
True
)
assert
p2
.
datatype
==
db
.
LIST
(
db
.
INTEGER
)
assert
p2
.
value
==
[
1
,
2
]
assert
p2
.
description
==
"
TestDescription
"
p
=
db
.
Property
(
name
=
"
TestProp2
"
,
datatype
=
db
.
DOUBLE
)
p
.
insert
()
p
.
datatype
=
db
.
LIST
(
db
.
INTEGER
)
p
.
update
()
# this worked because no value yet
p2
=
db
.
execute_query
(
"
FIND TestProp2
"
,
unique
=
True
)
assert
p2
.
datatype
==
db
.
LIST
(
db
.
INTEGER
)
p
.
value
=
[
1
,
2
]
p
.
update
()
# this failed
p2
=
db
.
execute_query
(
"
FIND TestProp2
"
,
unique
=
True
)
assert
p2
.
datatype
==
db
.
LIST
(
db
.
INTEGER
)
assert
p2
.
value
==
[
1
,
2
]
p
=
db
.
Property
(
name
=
"
TestProp3
"
,
datatype
=
db
.
DOUBLE
)
p
.
insert
()
p
.
datatype
=
db
.
LIST
(
db
.
INTEGER
)
p
.
value
=
[
1
,
2
]
p
.
update
()
# this failed
p2
=
db
.
execute_query
(
"
FIND TestProp3
"
,
unique
=
True
)
assert
p2
.
datatype
==
db
.
LIST
(
db
.
INTEGER
)
assert
p2
.
value
==
[
1
,
2
]
Loading