mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
change it to a task
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user