This commit is contained in:
Kenneth Kehl
2024-09-02 08:22:03 -07:00
parent e8b12de581
commit f74bf271a5
2 changed files with 1 additions and 5 deletions

View File

@@ -796,7 +796,6 @@ def load_test():
messagese will be sent in this service. messagese will be sent in this service.
""" """
# SIMULATED_SMS_NUMBERS = ("+14254147755", "+14254147167") # SIMULATED_SMS_NUMBERS = ("+14254147755", "+14254147167")
print(hilite("ENTER LOAD TEST"))
service = _find_load_test_service() service = _find_load_test_service()
_prepare_load_test_service(service) _prepare_load_test_service(service)
example_template = _find_example_template(service) example_template = _find_example_template(service)
@@ -853,6 +852,6 @@ def _prepare_load_test_service(service):
) )
except Exception: except Exception:
current_app.logger.exception( current_app.logger.exception(
f"Couldnt add user, may already be part of service" "Couldnt add user, may already be part of service"
) )
pass pass

View File

@@ -7,7 +7,6 @@ from flask import (
abort, abort,
current_app, current_app,
flash, flash,
json,
redirect, redirect,
render_template, render_template,
request, request,
@@ -621,7 +620,6 @@ def _check_messages(service_id, template_id, upload_id, preview_row, **kwargs):
) )
@user_has_permissions("send_messages", restrict_admin_usage=True) @user_has_permissions("send_messages", restrict_admin_usage=True)
def check_messages(service_id, template_id, upload_id, row_index=2): def check_messages(service_id, template_id, upload_id, row_index=2):
print(hilite("ENTER check_messages"))
data = _check_messages(service_id, template_id, upload_id, row_index) data = _check_messages(service_id, template_id, upload_id, row_index)
data["allowed_file_extensions"] = Spreadsheet.ALLOWED_FILE_EXTENSIONS data["allowed_file_extensions"] = Spreadsheet.ALLOWED_FILE_EXTENSIONS
@@ -1037,7 +1035,6 @@ def _send_notification(service_id, template_id):
form.file.name = filename form.file.name = filename
# TODO IF RUNNING LOAD TEST WE DONT NEED # TODO IF RUNNING LOAD TEST WE DONT NEED
check_message_output = check_messages(service_id, template_id, upload_id, 2) check_message_output = check_messages(service_id, template_id, upload_id, 2)
print(hilite(hilite(f"CHECK MESSAGE OUTPUT {check_message_output}")))
if "You cannot send to" in check_message_output: if "You cannot send to" in check_message_output:
return check_messages(service_id, template_id, upload_id, 2) return check_messages(service_id, template_id, upload_id, 2)