From cb1f6ef200301a29b9598a104c3db42b466805a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org> Date: Wed, 25 Aug 2021 12:12:25 +0200 Subject: [PATCH] ENH: add inttest for insert entity --- test/runtests.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 66c86a7..7c351fc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -137,4 +137,16 @@ end @test_throws CaosDB.Exceptions.GenericCaosDBException retrieve(["20", "21", "22"]) 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 -- GitLab