Skip to content
Snippets Groups Projects
Verified Commit 664f67c4 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Removed unnecessary line.

parent 9fe1019d
No related branches found
No related tags found
No related merge requests found
Pipeline #38266 passed
......@@ -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."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment