Skip to content
Snippets Groups Projects
Commit 54aab5dd authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

test

parent cfb52edc
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!80F simple schema export
Pipeline #42531 failed
......@@ -64,8 +64,11 @@ class CacheTest(unittest.TestCase):
update = UpdateCache(db_file=self.cache)
run_id = "a"
print(db.execute_query("FIND Record TestRecord", unique=True))
print(db.execute_query("FIND Record "+str(rec.id), unique=True))
print(db.execute_query("FIND entity with id="+str(rec.id), unique=True))
try:
print(db.execute_query("FIND Record "+str(rec.id), unique=True))
except:
print("Query does not work as expected")
update.insert(cont, run_id)
assert len(update.get_updates(run_id)) == 1
......
......@@ -27,16 +27,15 @@
# something to replace this.
import os
import sqlite3
from copy import deepcopy
import tempfile
import warnings
from abc import ABC, abstractmethod
from copy import deepcopy
from hashlib import sha256
import warnings
import caosdb as db
from lxml import etree
import tempfile
def put_in_container(stuff):
if isinstance(stuff, list):
......@@ -344,7 +343,7 @@ class UpdateCache(AbstractCache):
old_ones = db.Container()
for ent in cont:
old_ones.append(db.execute_query("FIND ENTITY {}".format(ent.id),
old_ones.append(db.execute_query("FIND ENTITY WITH ID={}".format(ent.id),
unique=True))
return old_ones
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment