Skip to content

Commit

Permalink
Tox changes in prep for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Mar 16, 2020
1 parent 7892c82 commit 75d5306
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 15 deletions.
4 changes: 3 additions & 1 deletion src/protean/infra/event_log.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Standard Library Imports
from datetime import datetime

# Protean
from protean.core.aggregate import BaseAggregate
from protean.core.field.basic import String, DateTime, Dict
from protean.core.field.basic import DateTime, Dict, String
from protean.core.repository.base import BaseRepository
from protean.globals import current_domain

Expand Down
2 changes: 1 addition & 1 deletion tests/domain_event/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from protean.core.domain_event import BaseDomainEvent
from protean.core.field.basic import Integer, String
from protean.core.field.embedded import AggregateField
from protean.globals import current_domain
from protean.core.unit_of_work import UnitOfWork
from protean.globals import current_domain


class PersonCommand(BaseCommand):
Expand Down
2 changes: 1 addition & 1 deletion tests/domain_event/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from mock import patch
from protean.core.domain_event import BaseDomainEvent
from protean.infra.event_log import EventLog, EventLogRepository
from protean.globals import current_domain
from protean.impl.broker.memory_broker import MemoryBroker
from protean.infra.event_log import EventLog, EventLogRepository
from protean.utils import fully_qualified_name

# Local/Relative Imports
Expand Down
2 changes: 1 addition & 1 deletion tests/field/test_field_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# Protean
import pytest

from protean.core.aggregate import BaseAggregate
from protean.core.exceptions import ValidationError
from protean.core.field.basic import Auto, Boolean, Date, DateTime, Dict, Float, Integer, List, String, Text
from protean.core.aggregate import BaseAggregate


class TestStringField:
Expand Down
2 changes: 1 addition & 1 deletion tests/impl/model/dict_model/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from protean.core.field.basic import Integer, String, Text
from protean.core.field.embedded import ValueObjectField
from protean.core.repository.base import BaseRepository
from protean.core.repository.model import BaseModel
from protean.core.value_object import BaseValueObject
from protean.globals import current_domain
from protean.core.repository.model import BaseModel


class Person(BaseAggregate):
Expand Down
4 changes: 2 additions & 2 deletions tests/impl/model/dict_model/tests.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Protean
import pytest

# Protean
from protean.impl.repository.dict_repo import DictModel

# Local/Relative Imports
from .elements import Email, Person, User, Provider, ProviderCustomModel, Receiver
from .elements import Email, Person, Provider, ProviderCustomModel, Receiver, User


class TestModel:
Expand Down
5 changes: 3 additions & 2 deletions tests/impl/model/elasticsearch_model/elements.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Standard Library Imports
import re

from collections import defaultdict
from datetime import datetime

from elasticsearch_dsl import Text, Keyword

# Protean
from elasticsearch_dsl import Keyword, Text
from protean.core.aggregate import BaseAggregate
from protean.core.field.basic import DateTime, Integer, String
from protean.core.field.basic import Text as ProteanText
Expand Down
3 changes: 1 addition & 2 deletions tests/impl/model/sqlalchemy_model/postgresql/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
from collections import defaultdict
from datetime import datetime

from sqlalchemy import Column, Text

# Protean
from protean.core.aggregate import BaseAggregate
from protean.core.field.basic import DateTime, Integer, String
from protean.core.field.embedded import ValueObjectField
from protean.core.repository.model import BaseModel
from protean.core.value_object import BaseValueObject
from sqlalchemy import Column, Text


class Person(BaseAggregate):
Expand Down
2 changes: 1 addition & 1 deletion tests/impl/model/sqlalchemy_model/postgresql/test_model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Protean
import pytest

# Protean
from protean.impl.repository.sqlalchemy_repo import SqlalchemyModel

# Local/Relative Imports
Expand Down
3 changes: 1 addition & 2 deletions tests/impl/model/sqlalchemy_model/sqlite/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
from collections import defaultdict
from datetime import datetime

from sqlalchemy import Column, Text

# Protean
from protean.core.aggregate import BaseAggregate
from protean.core.field.basic import DateTime, Integer, String
from protean.core.field.embedded import ValueObjectField
from protean.core.repository.model import BaseModel
from protean.core.value_object import BaseValueObject
from sqlalchemy import Column, Text


class Person(BaseAggregate):
Expand Down
2 changes: 1 addition & 1 deletion tests/impl/model/sqlalchemy_model/sqlite/test_model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Protean
import pytest

# Protean
from protean.impl.repository.sqlalchemy_repo import SqlalchemyModel

# Local/Relative Imports
Expand Down

0 comments on commit 75d5306

Please sign in to comment.