run pre commit

This commit is contained in:
mike cullerton 2022-06-10 08:15:06 -04:00
parent c35c7d0d1f
commit 6313492a70
3 changed files with 11 additions and 7 deletions

View File

@ -190,7 +190,9 @@ def process_instance_list(process_model_id, page=1, per_page=100):
process_instances = (
ProcessInstanceModel.query.filter_by(process_model_identifier=process_model.id)
.order_by(ProcessInstanceModel.start_in_seconds.desc(), ProcessInstanceModel.id.desc())
.order_by(
ProcessInstanceModel.start_in_seconds.desc(), ProcessInstanceModel.id.desc()
)
.paginate(page, per_page, False)
)

View File

@ -49,6 +49,7 @@ class Script:
We may be able to remove the task for each of these calls if we are not using it other than potentially
updating the task data.
"""
def make_closure(subclass, task, workflow_id):
"""Yes - this is black magic.
@ -84,6 +85,7 @@ class Script:
We may be able to remove the task for each of these calls if we are not using it other than potentially
updating the task data.
"""
def make_closure_validate(subclass, task, workflow_id):
"""Make_closure_validate."""
instance = subclass()

View File

@ -109,8 +109,9 @@ def test_process_group_delete(app, client: FlaskClient, with_bpmn_file_cleanup):
assert persisted is not None
assert persisted.id == process_group_id
client.delete(f"/v1.0/process-groups/{process_group_id}",
headers=logged_in_headers(user))
client.delete(
f"/v1.0/process-groups/{process_group_id}", headers=logged_in_headers(user)
)
deleted = ProcessModelService().get_process_group(process_group_id)
assert deleted is None
@ -175,15 +176,14 @@ def test_get_file(app, client: FlaskClient, with_bpmn_file_cleanup):
def test_get_workflow_from_workflow_spec(
app,
client: FlaskClient,
with_bpmn_file_cleanup
app, client: FlaskClient, with_bpmn_file_cleanup
):
"""Test_get_workflow_from_workflow_spec."""
user = find_or_create_user()
spec = load_test_spec(app, "hello_world")
response = client.post(
f"/v1.0/process-models/{spec.process_group_id}/{spec.id}", headers=logged_in_headers(user)
f"/v1.0/process-models/{spec.process_group_id}/{spec.id}",
headers=logged_in_headers(user),
)
assert response.status_code == 201
assert "hello_world" == response.json["process_model_identifier"]