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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Python Integration Tests
Commits
664f67c4
Verified
Commit
664f67c4
authored
2 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Removed unnecessary line.
parent
9fe1019d
No related branches found
No related tags found
No related merge requests found
Pipeline
#38266
passed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Stage: deploy
Changes
1
Pipelines
48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_issues_server.py
+3
-5
3 additions, 5 deletions
tests/test_issues_server.py
with
3 additions
and
5 deletions
tests/test_issues_server.py
+
3
−
5
View file @
664f67c4
...
...
@@ -1389,11 +1389,11 @@ See https://gitlab.com/caosdb/caosdb-server/-/issues/220"""
assert
query
.
cached
is
None
res_1
=
query
.
execute
(
unique
=
True
)
assert
query
.
cached
==
False
,
"
First query should be uncached.
"
assert
query
.
cached
is
False
,
"
First query should be uncached.
"
assert
res_1
.
id
==
rec
.
id
res_2
=
query
.
execute
(
unique
=
True
)
assert
query
.
cached
==
True
,
"
Second query should be cached.
"
assert
query
.
cached
is
True
,
"
Second query should be cached.
"
rectype
.
name
=
"
NewName
"
rectype
.
update
()
...
...
@@ -1401,6 +1401,4 @@ See https://gitlab.com/caosdb/caosdb-server/-/issues/220"""
res_3
=
query
.
execute
(
unique
=
True
)
assert
res_3
.
parents
[
0
].
name
==
rectype
.
name
,
\
"
The name of the record
'
s parent should be up-to-date.
"
assert
query
.
cached
==
False
,
"
Query after name change of parent should not be cached.
"
r
.
retrieve
(
flags
=
{
"
cache
"
:
"
false
"
})
assert
query
.
cached
is
False
,
"
Query after name change of parent should not be cached.
"
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