Browse Source

Added lots of tests (preparation for them)

Yentl Van Tendeloo 7 years ago
parent
commit
929992090f
2 changed files with 83 additions and 0 deletions
  1. 81 0
      unit/test_all.py
  2. 2 0
      wrappers/modelverse_SCCD.py

+ 81 - 0
unit/test_all.py

@@ -109,6 +109,87 @@ class TestModelverse(unittest.TestCase):
         verify_clean()
         verify_clean()
         pass
         pass
 
 
+    def test_op_model_list(self):
+        assert model_list("") == set(["formalisms/",
+                                      "models/",
+                                      "administration/",
+                                      "type mappings/",
+                                      "users/",
+                                      "test/",
+                                     ])
+        assert model_list("formalisms") == set(["SimpleClassDiagrams",
+                                                "ActionLanguage",
+                                                "TypeMapping",
+                                                "Tracability",
+                                                "ProcessModel",
+                                                "ManualOperation",
+                                                "Bottom",
+                                               ])
+        assert model_list("formalisms/") == set(["SimpleClassDiagrams",
+                                                 "ActionLanguage",
+                                                 "TypeMapping",
+                                                 "Tracability",
+                                                 "ProcessModel",
+                                                 "ManualOperation",
+                                                 "Bottom",
+                                                ])
+
+    """
+    def test_op_model_add(self):
+    def test_op_model_move(self):
+    def test_op_model_delete(self):
+    def test_op_model_list_full(self):
+    def test_op_verify(self):
+    def test_op_model_overwrite(self):
+    def test_op_user_delete(self):
+    def test_op_model_render(self):
+    def test_op_transformation_between(self):
+    def test_op_transformation_add_MT(self):
+    def test_op_transformation_add_AL(self):
+    def test_op_transformation_add_MANUAL(self):
+    def test_op_transformation_execute_MT(self):
+    def test_op_transformation_execute_AL(self):
+    def test_op_transformation_execute_MANUAL(self):
+    def test_op_transformation_signature(self):
+    def test_op_process_signature(self):
+    def test_op_permission_modify(self):
+    def test_op_permission_group(self):
+    def test_op_permission_owner(self):
+    def test_op_group_create(self):
+    def test_op_group_delete(self):
+    def test_op_group_owner_add(self):
+    def test_op_group_owner_delete(self):
+    def test_op_group_join(self):
+    def test_op_group_kick(self):
+    def test_op_group_list(self):
+    def test_op_admin_promote(self):
+    def test_op_admin_demote(self):
+    def test_op_conformance_delete(self):
+    def test_op_conformance_add(self):
+    def test_op_folder_create(self):
+    def test_op_model_types(self):
+    def test_op_alter_context(self):
+    def test_op_element_list(self):
+    def test_op_element_list_nice(self):
+    def test_op_types(self):
+    def test_op_types_full(self):
+    def test_op_read_info(self):
+    def test_op_read_attrs(self):
+    def test_op_instantiate(self):
+    def test_op_delete_element(self):
+    def test_op_attr_assign(self):
+    def test_op_attr_assign_code(self):
+    def test_op_attr_delete(self):
+    def test_op_AL_text(self):
+    def test_op_read_outgoing(self):
+    def test_op_read_incoming(self):
+    def test_op_read_association_source(self):
+    def test_op_read_association_destination(self):
+    def test_op_conections_between(self):
+    def test_op_define_attribute(self):
+    def test_op_all_instances(self):
+    """
+
     def test_list_full(self):
     def test_list_full(self):
         assert model_list_full("") == set([("formalisms/", "admin", "admin", "221"),
         assert model_list_full("") == set([("formalisms/", "admin", "admin", "221"),
                                            ("models/", "admin", "admin", "221"),
                                            ("models/", "admin", "admin", "221"),

+ 2 - 0
wrappers/modelverse_SCCD.py

@@ -1,6 +1,8 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
+Date:   Tue Jun  5 15:29:11 2018
+
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server
 Model description:
 Model description: