From a96b0adf54e82d388e2536e67758187a2599fe2a Mon Sep 17 00:00:00 2001
From: florian <f.spreckelsen@inidscale.com>
Date: Wed, 11 Aug 2021 09:44:02 +0200
Subject: [PATCH] ENH: Add test for descriptions

---
 test/test_transaction.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_transaction.cpp b/test/test_transaction.cpp
index 79cdb12..b186b90 100644
--- a/test/test_transaction.cpp
+++ b/test/test_transaction.cpp
@@ -304,6 +304,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
   Entity rt;
   rt.SetRole("RecordType");
   rt.SetName("TestRT");
+  rt.SetDescription("Some description");
   rt.AppendProperty(prop_rt);
 
   auto rt_insertion(connection->CreateTransaction());
@@ -336,6 +337,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
   const auto &retrieved_rt = rt_retrieve_results.GetEntity();
   EXPECT_EQ(inserted_rt.GetId(), retrieved_rt.GetId());
   EXPECT_EQ(rt.GetName(), retrieved_rt.GetName());
+  EXPECT_EQ(rt.GetDescription(), retrieved_rt.GetDescription());
   EXPECT_EQ(retrieved_rt.GetProperties().Size(), 1);
 
   const auto &retrieved_prop_rt = retrieved_rt.GetProperties().At(0);
@@ -397,6 +399,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
   const auto &retrieved_parent_rec = retrieved_rec.GetParents().At(0);
   EXPECT_EQ(retrieved_parent_rec.GetName(), rt.GetName());
   EXPECT_EQ(retrieved_parent_rec.GetId(), inserted_rt.GetId());
+  EXPECT_EQ(retrieved_parent_rec.GetDescription(), rt.GetDescription());
 
   const auto &retrieved_prop_rec = retrieved_rec.GetProperties().At(0);
   EXPECT_EQ(retrieved_prop_rec.GetName(), prop_ent.GetName());
-- 
GitLab