|
|
@ -49,6 +49,7 @@ def test_process_definition_key_attr(func): |
|
|
|
ProcessDefinitionDefault.TENANT, |
|
|
|
ProcessDefinitionDefault.TENANT, |
|
|
|
ProcessDefinitionDefault.QUEUE, |
|
|
|
ProcessDefinitionDefault.QUEUE, |
|
|
|
ProcessDefinitionDefault.USER_STATE)), |
|
|
|
ProcessDefinitionDefault.USER_STATE)), |
|
|
|
|
|
|
|
("worker_group", ProcessDefinitionDefault.WORKER_GROUP), |
|
|
|
("release_state", ProcessDefinitionReleaseState.ONLINE), |
|
|
|
("release_state", ProcessDefinitionReleaseState.ONLINE), |
|
|
|
], |
|
|
|
], |
|
|
|
) |
|
|
|
) |
|
|
@ -63,6 +64,7 @@ def test_process_definition_default_value(name, value): |
|
|
|
[ |
|
|
|
[ |
|
|
|
("project", Project, "project"), |
|
|
|
("project", Project, "project"), |
|
|
|
("tenant", Tenant, "tenant"), |
|
|
|
("tenant", Tenant, "tenant"), |
|
|
|
|
|
|
|
("worker_group", str, "worker_group"), |
|
|
|
], |
|
|
|
], |
|
|
|
) |
|
|
|
) |
|
|
|
def test_process_definition_set_attr(name, cls, expect): |
|
|
|
def test_process_definition_set_attr(name, cls, expect): |
|
|
@ -78,6 +80,7 @@ def test_process_definition_to_dict_without_task(): |
|
|
|
"description": None, |
|
|
|
"description": None, |
|
|
|
"project": ProcessDefinitionDefault.PROJECT, |
|
|
|
"project": ProcessDefinitionDefault.PROJECT, |
|
|
|
"tenant": ProcessDefinitionDefault.TENANT, |
|
|
|
"tenant": ProcessDefinitionDefault.TENANT, |
|
|
|
|
|
|
|
"workerGroup": ProcessDefinitionDefault.WORKER_GROUP, |
|
|
|
"timeout": 0, |
|
|
|
"timeout": 0, |
|
|
|
"releaseState": ProcessDefinitionReleaseState.ONLINE, |
|
|
|
"releaseState": ProcessDefinitionReleaseState.ONLINE, |
|
|
|
"param": None, |
|
|
|
"param": None, |
|
|
|