mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-24 08:20:31 +00:00
30 lines
673 B
Python
30 lines
673 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
|
||
|
|
||
|
import os
|
||
|
import sys
|
||
|
import unittest
|
||
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
|
||
|
|
||
|
from .TaskSpecTest import TaskSpecTest
|
||
|
from SpiffWorkflow.specs import Join
|
||
|
|
||
|
|
||
|
class JoinTest(TaskSpecTest):
|
||
|
CORRELATE = Join
|
||
|
|
||
|
def create_instance(self):
|
||
|
if 'testtask' in self.wf_spec.task_specs:
|
||
|
del self.wf_spec.task_specs['testtask']
|
||
|
|
||
|
return Join(self.wf_spec,
|
||
|
'testtask',
|
||
|
description='foo')
|
||
|
|
||
|
|
||
|
def suite():
|
||
|
return unittest.TestLoader().loadTestsFromTestCase(JoinTest)
|
||
|
if __name__ == '__main__':
|
||
|
unittest.TextTestRunner(verbosity=2).run(suite())
|