mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-18 13:31:08 +00:00
0892db6fa7
git-subtree-dir: SpiffWorkflow git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
25 lines
683 B
Python
25 lines
683 B
Python
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',
|
|
'dmn_version_20191111_test.dmn')
|
|
self.assertIsNone(self.parser.add_dmn_file(dmn))
|
|
|
|
|
|
def suite():
|
|
return unittest.TestLoader().loadTestsFromTestCase(DmnVersionTest)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.TextTestRunner(verbosity=2).run(suite())
|