From 9bf2ae320f6f8476da541a59a7b9a76b31ff5e75 Mon Sep 17 00:00:00 2001
From: Alexander Schlemmer <a.schlemmer@indiscale.com>
Date: Wed, 22 May 2024 15:06:02 +0200
Subject: [PATCH] TST: added a test for single properties

---
 unittests/test_sync_node.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/unittests/test_sync_node.py b/unittests/test_sync_node.py
index 85266789..09eedd9f 100644
--- a/unittests/test_sync_node.py
+++ b/unittests/test_sync_node.py
@@ -248,6 +248,8 @@ def test_export_node():
 
     exp = SyncNode(rec_a).export_entity()
     assert exp.get_property('a').value.id == 1
+    # SyncNodes convert multi properties into single properties
+    assert len([p for p in exp.properties if p.name == "a"]) == 1
 
     # same SyncNode object is obviously equal
     sn = SyncNode(db.Record(id=1))
-- 
GitLab