Tests being configured.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2023-11-22 11:55:51 -05:00
parent c4800a746d
commit 68c50ff824
3 changed files with 48 additions and 3 deletions

View File

@@ -448,11 +448,13 @@ class Organization(db.Model):
@property
def agreement_active(self):
return self.agreement and self.agreement.status == AgreementStatus.active
return (
self.agreement.status == AgreementStatus.active if self.agreement else False
)
@property
def has_mou(self):
return self.agreement and self.agreement.type == AgreementType.MOU
return self.agreement.type == AgreementType.MOU if self.agreement else False
def serialize(self):
return {