Skip to content
Snippets Groups Projects
Commit 7569aaa3 authored by florian's avatar florian
Browse files

TST: Fix name

parent 7dbabac6
No related branches found
No related tags found
1 merge request!4ENH: Allow insertion and deletion of single entities
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -101,14 +101,15 @@ TEST(test_entity, test_from_id_response) { // NOLINT
Entity other_ent(&idr_warnings_and_infos);
EXPECT_EQ(entity.GetId(), "other_entity_id");
EXPECT_EQ(entity.GetWarnings().Size(), 1);
EXPECT_EQ(entity.GetWarnings().At(0).GetDescription(), "warning_desc");
EXPECT_EQ(entity.GetWarnings().At(0).GetCode(),
std::cout << other_ent.ToString() << std::endl;
EXPECT_EQ(other_ent.GetId(), "other_entity_id");
EXPECT_EQ(other_ent.GetWarnings().Size(), 1);
EXPECT_EQ(other_ent.GetWarnings().At(0).GetDescription(), "warning_desc");
EXPECT_EQ(other_ent.GetWarnings().At(0).GetCode(),
MessageCode::ENTITY_HAS_NO_PROPERTIES);
EXPECT_EQ(entity.GetInfos().Size(), 1);
EXPECT_EQ(entity.GetInfos().At(0).GetDescription(), "info_desc");
EXPECT_EQ(entity.GetInfos().At(0).GetCode(), MessageCode::UNSPECIFIED);
EXPECT_EQ(other_ent.GetInfos().Size(), 1);
EXPECT_EQ(other_ent.GetInfos().At(0).GetDescription(), "info_desc");
EXPECT_EQ(other_ent.GetInfos().At(0).GetCode(), MessageCode::UNSPECIFIED);
}
} // namespace caosdb::entity
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment