|
@@ -5237,10 +5237,38 @@ class TestModelverse(unittest.TestCase):
|
|
|
except ExecutePermissionDenied:
|
|
except ExecutePermissionDenied:
|
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
- """
|
|
|
|
|
- def test_op_model_render(self):
|
|
|
|
|
def test_op_process_execute(self):
|
|
def test_op_process_execute(self):
|
|
|
- """
|
|
|
|
|
|
|
+ # This is only a minimal test, as actual execution will take a long time.
|
|
|
|
|
+ # For example, the integration tests rely solely on the process_execute operation, thereby being a good test for this.
|
|
|
|
|
+ # We now just test the execution in corner cases
|
|
|
|
|
+
|
|
|
|
|
+ # Test with non-existing model
|
|
|
|
|
+ try:
|
|
|
|
|
+ process_execute("abc", {})
|
|
|
|
|
+ self.fail()
|
|
|
|
|
+ except UnknownModel:
|
|
|
|
|
+ pass
|
|
|
|
|
+
|
|
|
|
|
+ # Test with folder model
|
|
|
|
|
+ try:
|
|
|
|
|
+ process_execute("formalisms", {})
|
|
|
|
|
+ self.fail()
|
|
|
|
|
+ except NotAModel:
|
|
|
|
|
+ pass
|
|
|
|
|
+
|
|
|
|
|
+ # Test with unreadable model
|
|
|
|
|
+ try:
|
|
|
|
|
+ process_execute("administration/core", {})
|
|
|
|
|
+ self.fail()
|
|
|
|
|
+ except ExecutePermissionDenied:
|
|
|
|
|
+ pass
|
|
|
|
|
+
|
|
|
|
|
+ # Test with non-process model
|
|
|
|
|
+ try:
|
|
|
|
|
+ process_execute("formalisms/SimpleClassDiagrams", {})
|
|
|
|
|
+ self.fail()
|
|
|
|
|
+ except NotAProcess:
|
|
|
|
|
+ pass
|
|
|
|
|
|
|
|
def test_modelling(self):
|
|
def test_modelling(self):
|
|
|
# Add a model
|
|
# Add a model
|