mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Add simple unit tests
This commit is contained in:
parent
fdc5236968
commit
a847b07ef7
5 changed files with 90 additions and 4 deletions
|
@ -122,8 +122,9 @@ class Portfolio(TimeStampedModel):
|
|||
|
||||
@property
|
||||
def portfolio_type(self):
|
||||
"""Returns a combination of organization_type and federal_type,
|
||||
seperated by ' - '. If no federal_type is found, we just return the org type."""
|
||||
"""
|
||||
Returns a combination of organization_type / federal_type, seperated by ' - '.
|
||||
If no federal_type is found, we just return the org type."""
|
||||
org_type = self.OrganizationChoices.get_org_label(self.organization_type)
|
||||
if self.organization_type == self.OrganizationChoices.FEDERAL and self.federal_type:
|
||||
return " - ".join([org_type, self.federal_type])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue