2022-10-12 10:19:53 -04:00
|
|
|
import os
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser
|
|
|
|
from tests.SpiffWorkflow.bpmn.BpmnWorkflowTestCase import BpmnWorkflowTestCase
|
|
|
|
|
|
|
|
class DmnVersionTest(BpmnWorkflowTestCase):
|
|
|
|
PARSER_CLASS = BpmnDmnParser
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
self.parser = BpmnDmnParser()
|
|
|
|
|
|
|
|
def testLoad(self):
|
|
|
|
dmn = os.path.join(os.path.dirname(__file__), 'data',
|
2022-10-27 10:50:48 -04:00
|
|
|
'dmn_version_20151101_test.dmn')
|
2022-10-12 10:19:53 -04:00
|
|
|
self.assertIsNone(self.parser.add_dmn_file(dmn))
|
|
|
|
|
|
|
|
|
|
|
|
def suite():
|
|
|
|
return unittest.TestLoader().loadTestsFromTestCase(DmnVersionTest)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.TextTestRunner(verbosity=2).run(suite())
|