mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 13:29:49 -04: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(
|
send_notification_to_service_users(
|
||||||
service_id=service_id,
|
service_id=service_id,
|
||||||
template_id=current_app.config["SERVICE_NOW_LIVE_TEMPLATE_ID"],
|
template_id=current_app.config["SERVICE_NOW_LIVE_TEMPLATE_ID"],
|
||||||
personalisation={
|
personalisation={"service_name": current_data["name"]},
|
||||||
"service_name": current_data["name"]
|
|
||||||
},
|
|
||||||
include_user_fields=["name"],
|
include_user_fields=["name"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ revision = "0407_fix_preferred_timezone"
|
|||||||
|
|
||||||
|
|
||||||
def upgrade():
|
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():
|
def downgrade():
|
||||||
|
|||||||
@@ -10,8 +10,9 @@ revision = "0408_fix_timezone_again"
|
|||||||
|
|
||||||
|
|
||||||
def upgrade():
|
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():
|
def downgrade():
|
||||||
|
|||||||
@@ -2399,10 +2399,7 @@ def test_update_service_calls_send_notification_as_service_becomes_live(
|
|||||||
send_notification_mock.assert_called_once_with(
|
send_notification_mock.assert_called_once_with(
|
||||||
service_id=restricted_service.id,
|
service_id=restricted_service.id,
|
||||||
template_id="618185c6-3636-49cd-b7d2-6f6f5eb3bdde",
|
template_id="618185c6-3636-49cd-b7d2-6f6f5eb3bdde",
|
||||||
personalisation={
|
personalisation={"service_name": restricted_service.name},
|
||||||
"service_name": restricted_service.name,
|
|
||||||
"message_limit": "1,000",
|
|
||||||
},
|
|
||||||
include_user_fields=["name"],
|
include_user_fields=["name"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user