mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-13 08:42:21 -05:00
Remove old status schema references
This commit is contained in:
@@ -260,7 +260,7 @@ class NotificationModelSchema(BaseSchema):
|
||||
class Meta:
|
||||
model = models.Notification
|
||||
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)
|
||||
|
||||
@@ -416,7 +416,7 @@ class NotificationWithTemplateSchema(BaseSchema):
|
||||
class Meta:
|
||||
model = models.Notification
|
||||
strict = True
|
||||
exclude = ('_personalisation', '_status_enum', '_status_fkey')
|
||||
exclude = ('_personalisation', )
|
||||
|
||||
template = fields.Nested(
|
||||
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
|
||||
|
||||
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', [
|
||||
|
||||
Reference in New Issue
Block a user