Skip to content

Commit

Permalink
fix import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Jul 9, 2024
1 parent a7681a4 commit 47306f6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
7 changes: 2 additions & 5 deletions api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
Created on 02/07/2024 at 11:57:31(+01:00).
"""

from .fruit import Fruit

from .agreement_signature import AgreementSignature
from .contributor import Contributor

from .fruit import Fruit
from .repository import Repository

from .agreement_signature import AgreementSignature
3 changes: 2 additions & 1 deletion api/models/agreement_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import typing as t

from django.db import models
from .contributor import Contributor
from django.utils.translation import gettext_lazy as _

from .contributor import Contributor

if t.TYPE_CHECKING:
from django_stubs_ext.db.models import TypedModelMeta
else:
Expand Down
4 changes: 3 additions & 1 deletion api/models/agreement_signature_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"""

from codeforlife.tests import ModelTestCase

from .agreement_signature import AgreementSignature
from .contributor import Contributor
from .repository import Repository
from .agreement_signature import AgreementSignature


class TestAgreementSignature(ModelTestCase[AgreementSignature]):
fixtures = ["agreement_signatures"]
Expand Down
1 change: 1 addition & 0 deletions api/models/contributor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from .contributor import Contributor


class TestContributor(ModelTestCase[Contributor]):
fixtures = ["contributors"]

Expand Down
3 changes: 2 additions & 1 deletion api/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import typing as t

from django.db import models
from .contributor import Contributor
from django.utils.translation import gettext_lazy as _

from .contributor import Contributor

if t.TYPE_CHECKING:
from django_stubs_ext.db.models import TypedModelMeta
else:
Expand Down
4 changes: 3 additions & 1 deletion api/models/repository_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"""

from codeforlife.tests import ModelTestCase

from .agreement_signature import AgreementSignature
from .contributor import Contributor
from .repository import Repository
from .agreement_signature import AgreementSignature


class TestRepository(ModelTestCase[Repository]):
fixtures = ["repositories"]
Expand Down

0 comments on commit 47306f6

Please sign in to comment.