mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-03-01 17:40:48 +00:00
32 lines
990 B
Python
32 lines
990 B
Python
|
import unittest
|
||
|
|
||
|
from .FeelDecisionRunner import FeelDecisionRunner
|
||
|
|
||
|
|
||
|
class FeelIntegerDecisionComparisonTestClass(unittest.TestCase):
|
||
|
"""
|
||
|
Doc: https://docs.camunda.org/manual/7.7/user-guide/dmn-engine/
|
||
|
"""
|
||
|
|
||
|
@classmethod
|
||
|
def setUpClass(cls):
|
||
|
cls.runner = FeelDecisionRunner('integer_decision_comparison_feel.dmn')
|
||
|
|
||
|
def test_integer_decision_string_output1(self):
|
||
|
res = self.runner.decide(30)
|
||
|
self.assertEqual(res.description, '30 Row Annotation')
|
||
|
|
||
|
def test_integer_decision_string_output2(self):
|
||
|
res = self.runner.decide(24)
|
||
|
self.assertEqual(res.description, 'L Row Annotation')
|
||
|
|
||
|
def test_integer_decision_string_output3(self):
|
||
|
res = self.runner.decide(25)
|
||
|
self.assertEqual(res.description, 'H Row Annotation')
|
||
|
|
||
|
def suite():
|
||
|
return unittest.TestLoader().loadTestsFromTestCase(FeelIntegerDecisionComparisonTestClass)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
unittest.TextTestRunner(verbosity=2).run(suite())
|