mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 16:48:31 -04:00
Rename JSONModel to SerialisedModel 2/2
This class doesn’t actually wrap JSON, it wraps serialised data. So this name feels better.
This commit is contained in:
@@ -3,7 +3,7 @@ from app.models import Notification
|
||||
from app.models import NOTIFICATION_CREATED
|
||||
from app.notifications.process_letter_notifications import create_letter_notification
|
||||
from app.notifications.validators import get_template_dict
|
||||
from app.json_models import TemplateJSONModel
|
||||
from app.serialised_models import SerialisedTemplate
|
||||
|
||||
|
||||
def test_create_letter_notification_creates_notification(sample_letter_template, sample_api_key):
|
||||
@@ -15,7 +15,7 @@ def test_create_letter_notification_creates_notification(sample_letter_template,
|
||||
}
|
||||
}
|
||||
|
||||
template = TemplateJSONModel(get_template_dict(
|
||||
template = SerialisedTemplate(get_template_dict(
|
||||
sample_letter_template.id, sample_letter_template.service_id
|
||||
))
|
||||
|
||||
@@ -50,7 +50,7 @@ def test_create_letter_notification_sets_reference(sample_letter_template, sampl
|
||||
'reference': 'foo'
|
||||
}
|
||||
|
||||
template = TemplateJSONModel(get_template_dict(
|
||||
template = SerialisedTemplate(get_template_dict(
|
||||
sample_letter_template.id, sample_letter_template.service_id
|
||||
))
|
||||
|
||||
@@ -74,7 +74,7 @@ def test_create_letter_notification_sets_billable_units(sample_letter_template,
|
||||
},
|
||||
}
|
||||
|
||||
template = TemplateJSONModel(get_template_dict(
|
||||
template = SerialisedTemplate(get_template_dict(
|
||||
sample_letter_template.id, sample_letter_template.service_id
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user