def test_full_multi_county(multi_county_dict):
    """ A full program run using multiple counties. """
    subject = f"COVID-19 Report FULL-RUN MULTI-COUNTY TEST: {random.randint(0,999999)}"
    main(
        multi_county_dict,
        custom_subject_line=subject,
        aws_dir=AWS_DIR_TEST,
        email_send=True,
    )
def test_full_dauphin_county(dauphin_county_dict):
    """ A full program run using just a single county """
    county_name = dauphin_county_dict["42043"]["name"]
    subject = (
        f"COVID-19 Report FULL-RUN TEST: {county_name}, {random.randint(0,999999)}"
    )
    main(
        dauphin_county_dict,
        custom_subject_line=subject,
        aws_dir=AWS_DIR_TEST,
        email_send=True,
    )
def test_full_greene_county(greene_county_dict):
    """ A full program run using just a single county BUT no email will be sent at end. """
    county_name = greene_county_dict["42059"]["name"]
    subject = (
        f"COVID-19 Report FULL-RUN TEST: {county_name}, {random.randint(0,999999)}"
    )
    main(
        greene_county_dict,
        custom_subject_line=subject,
        aws_dir=AWS_DIR_TEST,
        email_send=False,
    )
Example #4
0
def test_full_single_county():
    """
    A program run to a single county on the actual production SendGrid mailing list

    WARNING: Be careful about running this function unless you really intend to send out
    an actual blast to all subscribers on this list. This module should be ignored in conftest.py
    """
    dauphin_county_dict = {
        "42007": {
            "id": "3bd8378c-3183-445e-bffb-278e4af2c09c",
            "name": "Beaver County",
        },
    }
    main(dauphin_county_dict, aws_dir=AWS_DIR_TEST)