Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leodube-aot committed Apr 10, 2024
1 parent f658b42 commit 8f83646
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions legal-api/src/legal_api/models/amalgamation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from enum import auto

from sql_versioning import history_cls, Versioned
from sql_versioning import Versioned, history_cls

from ..utils.enum import BaseEnum
from .db import db
Expand Down Expand Up @@ -95,7 +95,7 @@ def get_amalgamation_revision_obj(cls, filing, legal_entity_id):
def get_amalgamation_revision_json(cls, filing, legal_entity_id):
"""Get amalgamation json for the given transaction id."""
from legal_api.services import business_service

amalgamation = Amalgamation.get_amalgamation_revision_obj(filing, legal_entity_id)

business = business_service.fetch_business_by_filing(filing)
Expand Down
4 changes: 1 addition & 3 deletions legal-api/src/legal_api/models/legal_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,7 @@ def get_amalgamated_into(self) -> dict:
and (state_filing := Filing.find_by_id(self.state_filing_id))
and state_filing.is_amalgamation_application
):
return Amalgamation.get_amalgamation_revision_json(
state_filing, state_filing.legal_entity_id
)
return Amalgamation.get_amalgamation_revision_json(state_filing, state_filing.legal_entity_id)

return None

Expand Down
2 changes: 1 addition & 1 deletion legal-api/tests/unit/models/test_legal_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,13 +547,13 @@ def test_amalgamated_into_business_json(session, test_name, existing_business_st
amalgamation.amalgamation_type = "regular"
amalgamation.amalgamation_date = datetime.now()
amalgamation.court_approval = True
amalgamation.save()

amalgamating_business = AmalgamatingBusiness()
amalgamating_business.role = "amalgamating"
amalgamating_business.legal_entity_id = existing_business.id
amalgamating_business.change_filing_id = filing.id
amalgamation.amalgamating_businesses.append(amalgamating_business)
amalgamation.save()

business.amalgamation.append(amalgamation)
db.session.add(business)
Expand Down

0 comments on commit 8f83646

Please sign in to comment.