diff --git a/tests/data/enum_empty_list/empty_spreadsheet.xls b/tests/data/enum_empty_list/empty_spreadsheet.xls new file mode 100644 index 00000000..dad3355b Binary files /dev/null and b/tests/data/enum_empty_list/empty_spreadsheet.xls differ diff --git a/tests/data/enum_empty_list/enum_empty_list.bpmn b/tests/data/enum_empty_list/enum_empty_list.bpmn new file mode 100644 index 00000000..f059445e --- /dev/null +++ b/tests/data/enum_empty_list/enum_empty_list.bpmn @@ -0,0 +1,62 @@ + + + + + Flow_08cjvuw + + + + + + + + + + + + + + + Flow_08cjvuw + Flow_0qm71qa + + + + Flow_0ynk21r + + + + <H1>Good Bye</H1> + Flow_0qm71qa + Flow_0ynk21r + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/workflow/test_workflow_enum_empty_list.py b/tests/workflow/test_workflow_enum_empty_list.py new file mode 100644 index 00000000..5d81c1d8 --- /dev/null +++ b/tests/workflow/test_workflow_enum_empty_list.py @@ -0,0 +1,13 @@ +from tests.base_test import BaseTest +import json + + +class TestEmptyEnumList(BaseTest): + + def test_empty_enum_list(self): + + spec_model = self.load_test_spec('enum_empty_list') + rv = self.app.get('/v1.0/workflow-specification/%s/validate' % spec_model.id, headers=self.logged_in_headers()) + json_data = json.loads(rv.get_data(as_text=True)) + + self.assertEqual(json_data[0]['code'], 'invalid enum')