Cleaning up tests.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-16 14:46:17 -05:00
parent 9523cc1d97
commit 8c6046b03b
33 changed files with 268 additions and 315 deletions

View File

@@ -1,6 +1,7 @@
import pytest
from app.models import BRANDING_ORG, EmailBranding
from app.enums import BrandType
from app.models import EmailBranding
from tests.app.db import create_email_branding
@@ -59,7 +60,7 @@ def test_post_create_email_branding(admin_request, notify_db_session):
"name": "test email_branding",
"colour": "#0000ff",
"logo": "/images/test_x2.png",
"brand_type": BRANDING_ORG,
"brand_type": BrandType.ORG,
}
response = admin_request.post(
"email_branding.create_email_branding", _data=data, _expected_status=201
@@ -82,7 +83,7 @@ def test_post_create_email_branding_without_brand_type_defaults(
response = admin_request.post(
"email_branding.create_email_branding", _data=data, _expected_status=201
)
assert BRANDING_ORG == response["data"]["brand_type"]
assert BrandType.ORG == response["data"]["brand_type"]
def test_post_create_email_branding_without_logo_is_ok(