From 375fefb89e0dd8f4db6e94f33a6f095524b43775 Mon Sep 17 00:00:00 2001 From: Andy Kuny Date: Wed, 27 Mar 2024 15:14:25 -0400 Subject: [PATCH] Format --- nad_ch/core/entities.py | 2 +- tests/controllers/web/test_column_maps.py | 11 ++++++++--- tests/controllers/web/test_data_submissions.py | 7 +++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/nad_ch/core/entities.py b/nad_ch/core/entities.py index 3787af7..688efcb 100644 --- a/nad_ch/core/entities.py +++ b/nad_ch/core/entities.py @@ -179,7 +179,7 @@ def __init__( email, login_provider, logout_url, - activated = False, + activated=False, producer: DataProducer = None, id: int = None, ): diff --git a/tests/controllers/web/test_column_maps.py b/tests/controllers/web/test_column_maps.py index 9ea8735..9d25075 100644 --- a/tests/controllers/web/test_column_maps.py +++ b/tests/controllers/web/test_column_maps.py @@ -24,8 +24,11 @@ def logged_in_client(client, app): saved_producer = app.extensions["ctx"]["producers"].add(producer) user = User( - "test_user@test.org", "test_provider", "test_logout_url", True, - saved_producer + "test_user@test.org", + "test_provider", + "test_logout_url", + True, + saved_producer, ) saved_user = app.extensions["ctx"]["users"].add(user) login_user(saved_user) @@ -42,7 +45,9 @@ def test_column_maps_route_empty(logged_in_client): def test_column_maps_route_has_two_column_maps(logged_in_client): - nj = logged_in_client.application.extensions["ctx"]["producers"].get_by_name("New Jersey") + nj = logged_in_client.application.extensions["ctx"]["producers"].get_by_name( + "New Jersey" + ) cm = ColumnMap( "Test", nj, diff --git a/tests/controllers/web/test_data_submissions.py b/tests/controllers/web/test_data_submissions.py index 74d316d..7907a10 100644 --- a/tests/controllers/web/test_data_submissions.py +++ b/tests/controllers/web/test_data_submissions.py @@ -24,8 +24,11 @@ def logged_in_client(client, app): saved_producer = app.extensions["ctx"]["producers"].add(producer) user = User( - "test_user@test.org", "test_provider", "test_logout_url", True, - saved_producer + "test_user@test.org", + "test_provider", + "test_logout_url", + True, + saved_producer, ) saved_user = app.extensions["ctx"]["users"].add(user) login_user(saved_user)