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
879c9bed
Commit
879c9bed
authored
1 year ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'd
parent
ba6929c7
No related branches found
No related tags found
1 merge request
!71
TST f-select-acl
Pipeline
#44751
passed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_permissions.py
+2
-2
2 additions, 2 deletions
tests/test_permissions.py
with
2 additions
and
2 deletions
tests/test_permissions.py
+
2
−
2
View file @
879c9bed
...
...
@@ -242,7 +242,7 @@ def test_query():
assert
db
.
execute_query
(
"
FIND ENTITY TestExperiment
"
,
unique
=
True
).
id
==
exp
.
id
'''
and with the id
'''
#assert db.execute_query(
#
assert db.execute_query(
# "FIND ENTITY TestExperiment WHICH HAS A TestConductor=" + str(dan.id),
# unique=True).id == exp.id
...
...
@@ -1287,7 +1287,7 @@ def test_select_query_with_invisible_reference():
values
=
select_results
.
get_property_values
(
*
value_args
)[
0
]
assert
values
[
0
]
==
visible_rec
.
name
assert
values
[
1
]
==
invisible_rec
.
id
# id is ok
assert
values
[
2
]
==
invisible_rt
.
name
# fall-back to property's name
assert
values
[
2
]
==
invisible_rt
.
name
# fall-back to property's name
assert
values
[
3
]
is
None
# prop isn't either
assert
values
[
4
]
is
None
# neither id ...
assert
values
[
5
]
is
None
# ... nor name of other rec referenced by invisible
...
...
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