Skip to content
Snippets Groups Projects
Commit ee25abee authored by Alexander Kreft's avatar Alexander Kreft
Browse files

DRAFT: Test update entity

parent cb1f6ef2
No related branches found
No related tags found
1 merge request!4F full ak
Pipeline #12581 failed
......@@ -149,4 +149,23 @@ end
end
@testset "Test entity update" begin
resset = execute_query("FIND TestEnt")
ent_with_name = execute_query("FIND TestEnt")
prop = CaosDB.Entity.create_property(name = "TestProperty", value = "12345")
CaosDB.Entity.set_datatype(prop, "INTEGER")
CaosDB.Entity.append_properties(ent_with_name[1], [prop])
single_insert_transaction = create_transaction()
add_update_entity(single_insert_transaction , ent_with_name[1])
execute(single_insert_transaction)
results = get_results(single_insert_transaction )
@test length(results) == 1
@test has_errors(results[1]) == false
@test get_id(results[1]) != ""
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment