Fixing a rogue comma that made something a tuple and not a string, which drives me CRAZY.
This commit is contained in:
parent
8b48acea9a
commit
a94596112d
|
@ -52,7 +52,7 @@ class Task(object):
|
|||
@classmethod
|
||||
def from_spiff(cls, spiff_task):
|
||||
try:
|
||||
documentation = spiff_task.task_spec.documentation,
|
||||
documentation = spiff_task.task_spec.documentation
|
||||
except AttributeError:
|
||||
documentation = None
|
||||
instance = cls(spiff_task.id,
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1gjhqt9" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.5.0">
|
||||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1gjhqt9" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1">
|
||||
<bpmn:process id="Process_1ds61df" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>SequenceFlow_0ik56h0</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:sequenceFlow id="SequenceFlow_0ik56h0" sourceRef="StartEvent_1" targetRef="Task_User_Select_Type" />
|
||||
<bpmn:userTask id="Task_User_Select_Type" name="Set Type" camunda:formKey="Get A Random Fun Fact">
|
||||
<bpmn:documentation>Here's some documentation</bpmn:documentation>
|
||||
<bpmn:documentation># Here's some documentation
|
||||
Here is some details in paragraph form.
|
||||
Along with a list of bullets:
|
||||
* Bullet 1
|
||||
* Bullet 2
|
||||
|
||||
> # Block Quotes are Help
|
||||
> You can use block qoutes to hide information if you want to keep things more tidy.
|
||||
</bpmn:documentation>
|
||||
<bpmn:extensionElements>
|
||||
<camunda:formData>
|
||||
<camunda:formField id="type" label="Type" type="enum" defaultValue="cat">
|
||||
|
|
|
@ -40,6 +40,17 @@ class TestTasksApi(BaseTest):
|
|||
tasks = self.get_workflow_api(workflow).user_tasks
|
||||
self.assertEqual("Task_User_Select_Type", tasks[0].name)
|
||||
self.assertEqual(3, len(tasks[0].form["fields"][0]["options"]))
|
||||
self.assertIsNotNone(tasks[0].documentation)
|
||||
expected_docs = """# Here's some documentation
|
||||
Here is some details in paragraph form.
|
||||
Along with a list of bullets:
|
||||
* Bullet 1
|
||||
* Bullet 2
|
||||
|
||||
> # Block Quotes are Help
|
||||
> You can use block qoutes to hide information if you want to keep things more tidy.
|
||||
"""
|
||||
self.assertEqual(expected_docs, tasks[0].documentation)
|
||||
|
||||
def test_two_forms_task(self):
|
||||
# Set up a new workflow
|
||||
|
|
Loading…
Reference in New Issue