More test cleanup

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-09-07 17:52:38 -04:00
parent 06fab2dd03
commit 23f894581c
4 changed files with 8 additions and 8 deletions

View File

@@ -19,14 +19,14 @@ svg_filename = "test.svg"
upload_id = "test_uuid"
@pytest.fixture
@pytest.fixture()
def upload_filename(fake_uuid):
return EMAIL_LOGO_LOCATION_STRUCTURE.format(
temp=TEMP_TAG.format(user_id=fake_uuid), unique_id=upload_id, filename=filename
)
@pytest.fixture
@pytest.fixture()
def bucket_credentials(notify_admin):
return notify_admin.config["LOGO_UPLOAD_BUCKET"]

View File

@@ -13,7 +13,7 @@ bucket_credentials = {
}
@pytest.fixture
@pytest.fixture()
def vcap_services():
return {
"aws-elasticache-redis": [{"credentials": {"uri": "redis://xxx:6379"}}],

View File

@@ -352,7 +352,7 @@ def test_raises_on_invalid_navigation_item(client_request, navigation_instance):
@pytest.mark.parametrize(
"endpoint, selected_nav_item",
("endpoint", "selected_nav_item"),
[
("main.choose_template", "Send messages"),
("main.manage_users", "Team members"),
@@ -392,7 +392,7 @@ def test_a_page_should_nave_selected_navigation_item(
@pytest.mark.parametrize(
"endpoint, selected_nav_item",
("endpoint", "selected_nav_item"),
[
("main.organization_dashboard", "Usage"),
("main.manage_org_users", "Team members"),

View File

@@ -53,7 +53,7 @@ def test_sum_of_statistics_sums_inputs():
@pytest.mark.parametrize(
"emails_failed,emails_requested,expected_failure_rate",
("emails_failed", "emails_requested", "expected_failure_rate"),
[(0, 0, "0"), (0, 1, "0.0"), (1, 3, "33.3")],
)
def test_add_rates_sets_email_failure_rate(
@@ -72,7 +72,7 @@ def test_add_rates_sets_email_failure_rate(
@pytest.mark.parametrize(
"sms_failed,sms_requested,expected_failure_rate",
("sms_failed", "sms_requested", "expected_failure_rate"),
[(0, 0, "0"), (0, 1, "0.0"), (1, 3, "33.3")],
)
def test_add_rates_sets_sms_failure_rate(
@@ -121,7 +121,7 @@ def test_service_statistics_by_state():
@pytest.mark.parametrize(
"failed, delivered, expected_failure_rate",
("failed", "delivered", "expected_failure_rate"),
[(0, 0, 0), (0, 1, 0), (1, 1, 50), (1, 0, 100), (1, 4, 20)],
)
def test_add_rate_to_job_calculates_rate(failed, delivered, expected_failure_rate):