update dao tests to pass in free sms fragment limit, remove command

This commit is contained in:
Leo Hemsted
2017-12-01 17:10:25 +00:00
parent 664187f878
commit a4e2a40134
4 changed files with 23 additions and 45 deletions

View File

@@ -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():
"""

View File

@@ -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',