mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
update dao tests to pass in free sms fragment limit, remove command
This commit is contained in:
@@ -335,32 +335,6 @@ def populate_service_letter_contact():
|
||||
print("Populated letter contacts for {} services".format(result.rowcount))
|
||||
|
||||
|
||||
@notify_command()
|
||||
def populate_service_and_service_history_free_sms_fragment_limit():
|
||||
"""
|
||||
DEPRECATED. Set services to have 250k sms limit.
|
||||
"""
|
||||
services_to_update = """
|
||||
UPDATE services
|
||||
SET free_sms_fragment_limit = 250000
|
||||
WHERE free_sms_fragment_limit IS NULL
|
||||
"""
|
||||
|
||||
services_history_to_update = """
|
||||
UPDATE services_history
|
||||
SET free_sms_fragment_limit = 250000
|
||||
WHERE free_sms_fragment_limit IS NULL
|
||||
"""
|
||||
|
||||
services_result = db.session.execute(services_to_update)
|
||||
services_history_result = db.session.execute(services_history_to_update)
|
||||
|
||||
db.session.commit()
|
||||
|
||||
print("Populated free sms fragment limits for {} services".format(services_result.rowcount))
|
||||
print("Populated free sms fragment limits for {} services history".format(services_history_result.rowcount))
|
||||
|
||||
|
||||
@notify_command()
|
||||
def populate_annual_billing():
|
||||
"""
|
||||
|
||||
@@ -290,7 +290,6 @@ class DetailedServiceSchema(BaseSchema):
|
||||
'letter_contact_block', # new exclude from here
|
||||
'message_limit',
|
||||
'email_from',
|
||||
# 'free_sms_fragment_limit',
|
||||
'inbound_api',
|
||||
'dvla_organisation',
|
||||
'whitelist',
|
||||
|
||||
Reference in New Issue
Block a user