Browse Source

Fix another error in tests

Yentl Van Tendeloo 3 years ago
parent
commit
56c7bb8ff4
2 changed files with 2 additions and 4 deletions
  1. 2 2
      unit/test_all.py
  2. 0 2
      wrappers/modelverse_SCCD.py

+ 2 - 2
unit/test_all.py

@@ -4581,7 +4581,7 @@ class TestModelverse(unittest.TestCase):
             transformation_execute_MANUAL("users/user/test/d", {"MODEL_A": "users/user/test/b"}, {"MODEL_B": "users/user/test/c"}, lambda i: i)
             self.fail()
         except TypeMismatch:
-            assert element_list_nice("users/user/test/c") > 0
+            assert len(element_list_nice("users/user/test/c")) > 0
 
         # Source model is folder
         try:
@@ -4951,7 +4951,7 @@ class TestModelverse(unittest.TestCase):
             transformation_execute_MT("users/user/test/d", {"MODEL_A": "users/user/test/b"}, {"MODEL_B": "users/user/test/d"})
             self.fail()
         except TypeMismatch:
-            assert element_list_nice("users/user/test/d") > 0
+            assert len(element_list_nice("users/user/test/d")) > 0
 
         # Source model is folder
         try:

+ 0 - 2
wrappers/modelverse_SCCD.py

@@ -1,8 +1,6 @@
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
-Date:   Wed Aug  1 14:36:19 2018
-
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model description: