Files
notifications-admin/tests/app/utils/test_templates.py
Carlo Costino 9a83ba7475 Localize notification_utils to the admin
This changeset pulls in all of the notification_utils code directly into the admin and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the admin.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-16 10:37:37 -04:00

11 lines
333 B
Python

import pytest
from app.utils.templates import get_sample_template
from notifications_utils.template import Template
@pytest.mark.parametrize("template_type", ["sms", "email"])
def test_get_sample_template_returns_template(template_type):
template = get_sample_template(template_type)
assert isinstance(template, Template)