mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Extract template / csv utility code into modules
This follows a similar approach to the previous commits, noting that one module depends on the other, so we have to extract both together.
This commit is contained in:
10
tests/app/utils/test_templates.py
Normal file
10
tests/app/utils/test_templates.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
from notifications_utils.template import Template
|
||||
|
||||
from app.utils.templates import get_sample_template
|
||||
|
||||
|
||||
@pytest.mark.parametrize("template_type", ["sms", "letter", "email"])
|
||||
def test_get_sample_template_returns_template(template_type):
|
||||
template = get_sample_template(template_type)
|
||||
assert isinstance(template, Template)
|
||||
Reference in New Issue
Block a user