Skip to content

Commit

Permalink
21262 Added inDissolution to slim json (bcgov#2706)
Browse files Browse the repository at this point in the history
* 21262 Moved the warnings to slim json

* fixed unit test

* added noDissolution to slim json and moved warnings back to big json

* changed to use in dissolution
  • Loading branch information
JazzarKarim authored May 28, 2024
1 parent 15957c2 commit 77636c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions legal-api/src/legal_api/models/business.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ def _slim_json(self):
'adminFreeze': self.admin_freeze or False,
'goodStanding': self.good_standing,
'identifier': self.identifier,
'inDissolution': self.in_dissolution,
'legalName': self.business_legal_name,
'legalType': self.legal_type,
'state': self.state.name if self.state else Business.State.ACTIVE.name
Expand Down
1 change: 1 addition & 0 deletions legal-api/tests/unit/models/test_business.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def test_business_json(session):
'alternateNames': [],
'goodStanding': False, # good standing will be false because the epoch is 1970
'identifier': 'CP1234567',
'inDissolution': False,
'legalName': 'legal_name',
'legalType': Business.LegalTypes.COOP.value,
'state': Business.State.ACTIVE.name,
Expand Down

0 comments on commit 77636c4

Please sign in to comment.