Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
akuny committed Mar 27, 2024
1 parent db3eef8 commit 375fefb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nad_ch/core/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(
email,
login_provider,
logout_url,
activated = False,
activated=False,
producer: DataProducer = None,
id: int = None,
):
Expand Down
11 changes: 8 additions & 3 deletions tests/controllers/web/test_column_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ def logged_in_client(client, app):
saved_producer = app.extensions["ctx"]["producers"].add(producer)

user = User(
"[email protected]", "test_provider", "test_logout_url", True,
saved_producer
"[email protected]",
"test_provider",
"test_logout_url",
True,
saved_producer,
)
saved_user = app.extensions["ctx"]["users"].add(user)
login_user(saved_user)
Expand All @@ -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,
Expand Down
7 changes: 5 additions & 2 deletions tests/controllers/web/test_data_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ def logged_in_client(client, app):
saved_producer = app.extensions["ctx"]["producers"].add(producer)

user = User(
"[email protected]", "test_provider", "test_logout_url", True,
saved_producer
"[email protected]",
"test_provider",
"test_logout_url",
True,
saved_producer,
)
saved_user = app.extensions["ctx"]["users"].add(user)
login_user(saved_user)
Expand Down

0 comments on commit 375fefb

Please sign in to comment.