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

ENH: add inttest for insert entity

parent b4b3e50c
Branches
Tags
1 merge request!5F full
Pipeline #12572 failed
...@@ -137,4 +137,16 @@ end ...@@ -137,4 +137,16 @@ end
@test_throws CaosDB.Exceptions.GenericCaosDBException retrieve(["20", "21", "22"]) @test_throws CaosDB.Exceptions.GenericCaosDBException retrieve(["20", "21", "22"])
end end
@testset "Test entity insertion" begin
ent_with_name = CaosDB.Entity.create_recordtype("TestEnt")
single_insert_transaction = create_transaction()
add_insert_entity(single_insert_transaction , ent_with_name)
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 end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment