mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-31 03:35:39 +00:00
0892db6fa7
git-subtree-dir: SpiffWorkflow git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
24 lines
663 B
Python
24 lines
663 B
Python
import unittest
|
|
|
|
from .FeelDecisionRunner import FeelDecisionRunner
|
|
|
|
|
|
class FeelStringDecisionTestClass(unittest.TestCase):
|
|
"""
|
|
Doc: https://docs.camunda.org/manual/7.7/user-guide/dmn-engine/
|
|
"""
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
cls.runner = FeelDecisionRunner('kwargs_parameter_feel.dmn')
|
|
|
|
def test_string_decision_string_output1(self):
|
|
res = self.runner.decide({"Gender":'m'})
|
|
self.assertEqual(res.description, 'm Row Annotation')
|
|
|
|
def suite():
|
|
return unittest.TestLoader().loadTestsFromTestCase(FeelStringDecisionTestClass)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.TextTestRunner(verbosity=2).run(suite())
|