mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-04 22:28:25 -04:00
Remove old status schema references
This commit is contained in:
@@ -260,7 +260,7 @@ class NotificationModelSchema(BaseSchema):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = models.Notification
|
model = models.Notification
|
||||||
strict = True
|
strict = True
|
||||||
exclude = ('_personalisation', 'job', 'service', 'template', 'api_key', '_status_enum', '_status_fkey')
|
exclude = ('_personalisation', 'job', 'service', 'template', 'api_key',)
|
||||||
|
|
||||||
status = fields.String(required=False)
|
status = fields.String(required=False)
|
||||||
|
|
||||||
@@ -416,7 +416,7 @@ class NotificationWithTemplateSchema(BaseSchema):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = models.Notification
|
model = models.Notification
|
||||||
strict = True
|
strict = True
|
||||||
exclude = ('_personalisation', '_status_enum', '_status_fkey')
|
exclude = ('_personalisation', )
|
||||||
|
|
||||||
template = fields.Nested(
|
template = fields.Nested(
|
||||||
TemplateSchema,
|
TemplateSchema,
|
||||||
|
|||||||
@@ -44,8 +44,6 @@ def test_notification_schema_has_correct_status(sample_notification, schema_name
|
|||||||
data = getattr(schemas, schema_name).dump(sample_notification).data
|
data = getattr(schemas, schema_name).dump(sample_notification).data
|
||||||
|
|
||||||
assert data['status'] == sample_notification.status
|
assert data['status'] == sample_notification.status
|
||||||
assert '_status_enum' not in data
|
|
||||||
assert '_status_fkey' not in data
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('user_attribute, user_value', [
|
@pytest.mark.parametrize('user_attribute, user_value', [
|
||||||
|
|||||||
Reference in New Issue
Block a user