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
56fdc7f8
Commit
56fdc7f8
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-test-name-duplicate' into 'dev'
Test for name duplicates See merge request
!72
parents
061f305b
3e934eeb
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!72
Test for name duplicates
Pipeline
#46038
passed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Stage: deploy
Changes
1
Pipelines
58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_issues_server.py
+11
-0
11 additions, 0 deletions
tests/test_issues_server.py
with
11 additions
and
0 deletions
tests/test_issues_server.py
+
11
−
0
View file @
56fdc7f8
...
...
@@ -1435,6 +1435,17 @@ See https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/106
assert
db
.
Record
(
id
=
r
.
id
).
retrieve
().
get_property
(
"
prop
"
).
datatype
==
db
.
TEXT
@pytest.mark.xfail
(
reason
=
"
https://gitlab.com/caosdb/caosdb-server/-/issues/230
"
)
def
test_230_name_duplicates_in_list_datatypes
():
"""
https://gitlab.com/linkahead/linkahead-server/-/issues/230
"""
prop
=
db
.
Property
(
name
=
"
Test
"
,
datatype
=
db
.
TEXT
).
insert
()
# RT with same name, will be used as datatype
rt
=
db
.
RecordType
(
name
=
"
Test
"
).
insert
(
unique
=
False
)
rec
=
db
.
Record
(
name
=
"
TestRec
"
).
add_parent
(
id
=
rt
.
id
).
insert
()
rec
.
add_property
(
id
=
rt
.
id
,
datatype
=
rt
.
id
).
update
()
# This works since it's not a list
rec
.
add_property
(
id
=
rt
.
id
,
datatype
=
db
.
LIST
(
rt
.
id
)).
update
()
# This fails
@pytest.mark.xfail
(
reason
=
"
https://gitlab.com/caosdb/caosdb-server/-/issues/235
"
)
def
test_235_long_name
():
"""
Should give an appropriate error, not just unknown server/-/issues.
"""
...
...
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