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
!4
add new test for SELECT name FROM ENTITY
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add new test for SELECT name FROM ENTITY
f-select-name-from-entity
into
dev
Overview
0
Commits
7
Pipelines
10
Changes
2
Merged
Timm Fitschen
requested to merge
f-select-name-from-entity
into
dev
3 years ago
Overview
0
Commits
7
Pipelines
10
Changes
2
Expand
Tests for
caosdb-server#130 (closed)
Edited
3 years ago
by
Timm Fitschen
0
0
Merge request reports
Compare
dev
version 6
ee80c393
3 years ago
version 5
888deaab
3 years ago
version 4
eb5ee2a4
3 years ago
version 3
61820a9e
3 years ago
version 2
703ed91f
3 years ago
version 1
d7c9dd8b
3 years ago
dev (base)
and
latest version
latest version
2d75b1e7
7 commits,
3 years ago
version 6
ee80c393
6 commits,
3 years ago
version 5
888deaab
5 commits,
3 years ago
version 4
eb5ee2a4
4 commits,
3 years ago
version 3
61820a9e
3 commits,
3 years ago
version 2
703ed91f
2 commits,
3 years ago
version 1
d7c9dd8b
1 commit,
3 years ago
2 files
+
12
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
tests/test_select.py
+
11
−
0
Options
@@ -147,6 +147,17 @@ def test_name2():
assert
e
.
description
is
None
def
test_name_from_entity
():
db
.
administration
.
set_server_property
(
"
QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS
"
,
"
FALSE
"
)
p3s
=
db
.
execute_query
(
"
SELECT name FROM ENTITY
"
,
flags
=
{
"
cache
"
:
"
false
"
})
db
.
administration
.
set_server_property
(
"
QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS
"
,
"
TRUE
"
)
p3s
=
db
.
execute_query
(
"
SELECT name FROM ENTITY
"
,
flags
=
{
"
cache
"
:
"
false
"
})
def
test_multi1
():
p1
=
db
.
execute_query
(
"
SELECT id, name, description FROM TestPropertyOne
"
,
Loading