mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
Added test for go_live_user and go_live_at in the response for get_service_by_id
This commit is contained in:
@@ -438,8 +438,6 @@ class Service(db.Model, Versioned):
|
||||
uselist=False,
|
||||
backref=db.backref('services', lazy='dynamic'))
|
||||
|
||||
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, data):
|
||||
"""
|
||||
|
||||
@@ -210,6 +210,7 @@ class ServiceSchema(BaseSchema):
|
||||
organisation = field_for(models.Service, 'organisation')
|
||||
override_flag = False
|
||||
letter_contact_block = fields.Method(serialize="get_letter_contact")
|
||||
go_live_at = field_for(models.Service, 'go_live_at', format='%Y-%m-%d %H:%M:%S.%f')
|
||||
|
||||
def get_letter_logo_filename(self, service):
|
||||
return service.letter_branding and service.letter_branding.filename
|
||||
|
||||
Reference in New Issue
Block a user