change it to a task

This commit is contained in:
Kenneth Kehl
2024-06-14 09:32:58 -07:00
parent 9408c9955b
commit bff2df514f
8 changed files with 104 additions and 34 deletions

View File

@@ -16,7 +16,6 @@ from app.commands import (
populate_organizations_from_file,
promote_user_to_platform_admin,
purge_functional_test_data,
show_users,
update_jobs_archived_flag,
)
from app.dao.inbound_numbers_dao import dao_get_available_inbound_numbers
@@ -442,11 +441,3 @@ def test_promote_user_to_platform_admin_no_result_found(
)
assert "NoResultFound" in str(result)
assert sample_user.platform_admin is False
def test_show_users(notify_db_session, notify_api, sample_user):
result = notify_api.test_cli_runner().invoke(
show_users,
[],
)
assert "Name,Email address,Mobile number,Service name" in str(result)

View File

@@ -99,7 +99,10 @@ def test_scrub():
result = scrub(
"This is a message with 17775554324, and also 18884449323 and also 17775554324"
)
assert result == "This is a message with 1XXXXX54324, and also 1XXXXX49323 and also 1XXXXX54324"
assert (
result
== "This is a message with 1XXXXX54324, and also 1XXXXX49323 and also 1XXXXX54324"
)
# This method is used for simulating bulk sends. We use localstack and run on a developer's machine to do the