pre commit with poetry

This commit is contained in:
mike cullerton 2022-06-10 12:51:38 -04:00
parent 785b7f17ed
commit a3d76b5e85
2 changed files with 14 additions and 10 deletions

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 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. updating the task data.
""" """
def make_closure(subclass, task, workflow_id): def make_closure(subclass, task, workflow_id):
"""Yes - this is black magic. """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 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. updating the task data.
""" """
def make_closure_validate(subclass, task, workflow_id): def make_closure_validate(subclass, task, workflow_id):
"""Make_closure_validate.""" """Make_closure_validate."""
instance = subclass() instance = subclass()

View File

@ -54,7 +54,7 @@ def test_process_model_delete(app, client: FlaskClient, with_bpmn_file_cleanup):
headers=logged_in_headers(user), headers=logged_in_headers(user),
) )
assert response.status_code == 200 assert response.status_code == 200
assert response.json['ok'] is True assert response.json["ok"] is True
# assert we no longer have a model # assert we no longer have a model
process_model = ProcessModelService().get_spec("make_cookies") process_model = ProcessModelService().get_spec("make_cookies")
@ -131,8 +131,8 @@ def test_process_group_delete(app, client: FlaskClient, with_bpmn_file_cleanup):
def test_process_group_update(app, client: FlaskClient, with_bpmn_file_cleanup): def test_process_group_update(app, client: FlaskClient, with_bpmn_file_cleanup):
"""Test Process Group Update.""" """Test Process Group Update."""
group_id = 'test_process_group' group_id = "test_process_group"
group_display_name = 'Test Group' group_display_name = "Test Group"
user = find_or_create_user() user = find_or_create_user()
create_process_group(client, user, group_id, display_name=group_display_name) create_process_group(client, user, group_id, display_name=group_display_name)
@ -140,18 +140,20 @@ def test_process_group_update(app, client: FlaskClient, with_bpmn_file_cleanup):
assert process_group.display_name == group_display_name assert process_group.display_name == group_display_name
process_group.display_name = 'Modified Display Name' process_group.display_name = "Modified Display Name"
response = client.put(f"/v1.0/process-groups/{group_id}", response = client.put(
f"/v1.0/process-groups/{group_id}",
headers=logged_in_headers(user), headers=logged_in_headers(user),
content_type="application/json", content_type="application/json",
data=json.dumps(ProcessGroupSchema().dump(process_group))) data=json.dumps(ProcessGroupSchema().dump(process_group)),
)
assert response.status_code == 200 assert response.status_code == 200
process_group = ProcessModelService().get_process_group(group_id) process_group = ProcessModelService().get_process_group(group_id)
assert process_group.display_name == 'Modified Display Name' assert process_group.display_name == "Modified Display Name"
print('test_process_group_update') print("test_process_group_update")
def test_process_model_file_save(app, client: FlaskClient, with_bpmn_file_cleanup): def test_process_model_file_save(app, client: FlaskClient, with_bpmn_file_cleanup):