Skip to content
Snippets Groups Projects
Commit 272bbc46 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

TST: removed commented test

parent 9ab543c8
No related branches found
No related tags found
2 merge requests!198REL: Release 0.10.0,!190System test for confirming issue #14 (parent updates)
Pipeline #56736 passed with warnings
...@@ -375,35 +375,3 @@ def test_issue_14(clear_database): ...@@ -375,35 +375,3 @@ def test_issue_14(clear_database):
assert records[0].get_property("RT2").value == f_test.id assert records[0].get_property("RT2").value == f_test.id
# Another bug: set id of node?
# def test_issue_14(clear_database):
# """
# Issue title: Some parent updates are required before inserts
#
# https://gitlab.indiscale.com/caosdb/src/caosdb-crawler/-/issues/14
# """
#
# rt1 = db.RecordType(name="RT1")
# rt2 = db.RecordType(name="RT2").insert()
# rt1.add_property(rt2, importance=db.OBLIGATORY)
# rt1.insert()
#
# r = db.Record()
# r.add_parent(rt1)
# with tempfile.NamedTemporaryFile() as tmpf:
# f = db.File(name="test_parent", path="parent_test/file.txt", file=tmpf.name)
# f.insert()
#
# f2 = db.File(name="test_parent").retrieve()
# f2.add_parent(rt2)
# r.add_property(name="RT2", value=f2)
# # cont = db.Container([f2, r])
#
# ident = CaosDBIdentifiableAdapter()
# ident.register_identifiable("R1", db.RecordType().add_parent(
# name="R1").add_property(name="R2"))
# crawler = Crawler(identifiableAdapter=ident)
# crawler.synchronize(crawled_data=[f2, r])
# breakpoint()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment