Skip to content

Commit

Permalink
ran isort on legal api
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim committed Mar 19, 2024
1 parent c7e3cf5 commit 950a32f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion legal-api/src/legal_api/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
SYSTEM_ROLE,
authorized,
has_roles,
) # noqa: I001;
)
from .bootstrap import AccountService, RegistrationBootstrapService
from .business_details_version import VersionedBusinessDetailsService
from .business_service import BusinessService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from flask_babel import _ as babel # noqa: N813, I004, I001; importing camelcase '_' as a name

from legal_api.errors import Error
from legal_api.models import AmalgamatingBusiness, Amalgamation, LegalEntity, EntityRole, Filing
from legal_api.models import AmalgamatingBusiness, Amalgamation, EntityRole, Filing, LegalEntity
from legal_api.services import STAFF_ROLE
from legal_api.services.bootstrap import AccountService
from legal_api.services.business_service import BusinessService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
# limitations under the License.

"""Service to check compliancy for a LegalEntity."""
from .firms import check_business as firms_check # noqa: I003
from legal_api.services.warnings.business.business_checks import WarningType
from legal_api.models import LegalEntity
from legal_api.services.warnings.business.business_checks import WarningType

from .corps import check_business as corps_check
from .firms import check_business as firms_check # noqa: I003


def check_business(business: any) -> list:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Test suite to ensure Corpse business checks work correctly."""
import pytest
from unittest.mock import Mock, patch
from datetime import datetime, timedelta
from tests.unit.models import factory_legal_entity
from unittest.mock import Mock, patch

import pytest

from legal_api.services.warnings.business.business_checks import WarningType
from legal_api.services.warnings.business.business_checks.corps import check_business
from tests.unit.models import factory_legal_entity


@pytest.mark.parametrize(
Expand Down

0 comments on commit 950a32f

Please sign in to comment.