mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
Use new properties of utils Templates
We’ve added some new properties to the templates in utils that we can use instead of doing weird things like `WithSubjectTemplate.__str__(another_instance)`
This commit is contained in:
@@ -172,8 +172,10 @@ def test_notification_personalisation_setter_always_sets_empty_dict(input_value)
|
||||
assert noti._personalisation == encryption.encrypt({})
|
||||
|
||||
|
||||
def test_notification_subject_is_none_for_sms():
|
||||
assert Notification(notification_type=SMS_TYPE).subject is None
|
||||
def test_notification_subject_is_none_for_sms(sample_service):
|
||||
template = create_template(service=sample_service, template_type=SMS_TYPE)
|
||||
notification = create_notification(template=template)
|
||||
assert notification.subject is None
|
||||
|
||||
|
||||
@pytest.mark.parametrize('template_type', ['email', 'letter'])
|
||||
|
||||
Reference in New Issue
Block a user