mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
code review feedback remove print statements
This commit is contained in:
@@ -76,7 +76,6 @@ def test_post_to_get_inbound_sms_filters_international_user_number(admin_request
|
||||
)['data']
|
||||
|
||||
assert len(sms) == 2
|
||||
print(f'sms is: {sms}')
|
||||
assert sms[1]['id'] == str(one.id)
|
||||
assert sms[1]['user_number'] == str(one.user_number)
|
||||
|
||||
|
||||
@@ -86,7 +86,6 @@ def test_check_and_queue_callback_task(mocker, sample_notification):
|
||||
|
||||
# callback_api doesn't match by equality for some
|
||||
# reason, so we need to take this approach instead
|
||||
print(f'mock_create.mock_calls is: {mock_create.mock_calls}')
|
||||
mock_create_args = mock_create.mock_calls[0][1]
|
||||
assert mock_create_args[0] == sample_notification
|
||||
assert mock_create_args[1].id == callback_api.id
|
||||
|
||||
@@ -129,7 +129,6 @@ def test_get_all_invited_users_by_service(client, notify_db_session, sample_serv
|
||||
for i in range(0, 5):
|
||||
email = 'invited_user_{}@service.gov.uk'.format(i)
|
||||
invited_user = create_invited_user(sample_service, to_email_address=email)
|
||||
print(f"INVITED USER = {invited_user.auth_type}")
|
||||
invites.append(invited_user)
|
||||
|
||||
url = '/service/{}/invite'.format(sample_service.id)
|
||||
@@ -144,7 +143,6 @@ def test_get_all_invited_users_by_service(client, notify_db_session, sample_serv
|
||||
json_resp = json.loads(response.get_data(as_text=True))
|
||||
|
||||
invite_from = sample_service.users[0]
|
||||
print(f"INVITE FROM {json_resp['data']}")
|
||||
|
||||
for invite in json_resp['data']:
|
||||
assert invite['service'] == str(sample_service.id)
|
||||
|
||||
Reference in New Issue
Block a user