mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user