mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Update failing test; include blackened files
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -260,9 +260,7 @@ def update_service(service_id):
|
||||
send_notification_to_service_users(
|
||||
service_id=service_id,
|
||||
template_id=current_app.config["SERVICE_NOW_LIVE_TEMPLATE_ID"],
|
||||
personalisation={
|
||||
"service_name": current_data["name"]
|
||||
},
|
||||
personalisation={"service_name": current_data["name"]},
|
||||
include_user_fields=["name"],
|
||||
)
|
||||
|
||||
|
||||
@@ -10,8 +10,9 @@ revision = "0407_fix_preferred_timezone"
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("update users set preferred_timezone='US/Eastern' where preferred_timezone=''")
|
||||
|
||||
op.execute(
|
||||
"update users set preferred_timezone='US/Eastern' where preferred_timezone=''"
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
||||
@@ -10,8 +10,9 @@ revision = "0408_fix_timezone_again"
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("update users set preferred_timezone='US/Eastern' where (preferred_timezone='') is not false")
|
||||
|
||||
op.execute(
|
||||
"update users set preferred_timezone='US/Eastern' where (preferred_timezone='') is not false"
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
||||
@@ -2399,10 +2399,7 @@ def test_update_service_calls_send_notification_as_service_becomes_live(
|
||||
send_notification_mock.assert_called_once_with(
|
||||
service_id=restricted_service.id,
|
||||
template_id="618185c6-3636-49cd-b7d2-6f6f5eb3bdde",
|
||||
personalisation={
|
||||
"service_name": restricted_service.name,
|
||||
"message_limit": "1,000",
|
||||
},
|
||||
personalisation={"service_name": restricted_service.name},
|
||||
include_user_fields=["name"],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user