<commit_before>import pytest

from retry.api import retry_call
from config import config

from tests.pages import UploadCsvPage

from tests.postman import (
    send_notification_via_csv,
    get_notification_by_id_via_api,
)

from tests.test_utils import assert_notification_body, recordtime, NotificationStatuses


@pytest.mark.skip(reason="intermittent pager duty alerts due to queue backlog")
def test_admin(driver, client, login_user):
    upload_csv_page = UploadCsvPage(driver)
    csv_sms_notification_id = send_notification_via_csv(upload_csv_page, 'sms')
    csv_sms_notification = retry_call(
        get_notification_by_id_via_api,
        fargs=[client, csv_sms_notification_id, NotificationStatuses.SENT],
        tries=config['notification_retry_times'],
        delay=config['notification_retry_interval']
    )
    assert_notification_body(csv_sms_notification_id, csv_sms_notification)
<commit_msg>Restore implicit login test<commit_after>import pytest

from retry.api import retry_call
from config import config

from tests.pages import UploadCsvPage

from tests.postman import (
    send_notification_via_csv,
    get_notification_by_id_via_api,
)

from tests.test_utils import assert_notification_body, recordtime, NotificationStatuses


@recordtime
def test_admin(driver, client, login_user):
    upload_csv_page = UploadCsvPage(driver)

    pytest.skip('intermittent pager duty alerts due to queue backlog')

    csv_sms_notification_id = send_notification_via_csv(upload_csv_page, 'sms')
    csv_sms_notification = retry_call(
        get_notification_by_id_via_api,
        fargs=[client, csv_sms_notification_id, NotificationStatuses.SENT],
        tries=config['notification_retry_times'],
        delay=config['notification_retry_interval']
    )
    assert_notification_body(csv_sms_notification_id, csv_sms_notification)

{'fraction_non_alphanumeric': 0.06374932468935711, 'fraction_numerical': 0.0, 'mean_word_length': 5.8088235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4732466', 'n_tokens_mistral': 583, 'n_tokens_neox': 574, 'n_words': 108}