From 8bf714c61aa999152de09ea6e859a0ce3001c9f7 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Sat, 14 Aug 2021 17:55:21 +0200
Subject: [PATCH] WIP: consolidation

---
 test/test_entity.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/test_entity.cpp b/test/test_entity.cpp
index 1c9e3a9..69e4b99 100644
--- a/test/test_entity.cpp
+++ b/test/test_entity.cpp
@@ -172,6 +172,8 @@ TEST(test_entity, test_insert_entity) {
 
   EXPECT_EQ(entity.GetRole(), Role::RECORD_TYPE);
   EXPECT_EQ(entity.GetName(), "entity_name");
+
+  EXPECT_EQ(transaction.RequestToString(), "");
 }
 
 TEST(test_entity, test_insert_with_role) {
@@ -309,4 +311,11 @@ TEST(test_entity, test_description) {
   EXPECT_EQ(property.GetDescription(), "desc property");
   EXPECT_EQ(parent.GetDescription(), "desc parent");
 }
+
+TEST(test_entity, test_role) {
+  Entity entity;
+  entity.SetRole(Role::RECORD_TYPE);
+
+  EXPECT_EQ(entity.GetRole(), Role::RECORD_TYPE);
+}
 } // namespace caosdb::entity
-- 
GitLab