Skip to content

Commit 0d4f172

Browse files
author
Sergio García Prado
committed
ISSUE #346
* Rename `MinosTestCase` as `AggregateTestCase`.
1 parent 77609ed commit 0d4f172

File tree

26 files changed

+56
-55
lines changed

26 files changed

+56
-55
lines changed

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_aggregate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
)
1212
from tests.utils import (
1313
CONFIG_FILE_PATH,
14-
MinosTestCase,
14+
AggregateTestCase,
1515
Order,
1616
OrderAggregate,
1717
)
1818

1919

20-
class TestAggregate(MinosTestCase):
20+
class TestAggregate(AggregateTestCase):
2121
async def test_root(self):
2222
async with OrderAggregate.from_config(CONFIG_FILE_PATH) as aggregate:
2323
self.assertEqual(Order, aggregate.root)

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_models/test_root/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
)
2020
from tests.utils import (
2121
Car,
22-
MinosTestCase,
22+
AggregateTestCase,
2323
)
2424

2525

26-
class TestRootEntity(MinosTestCase):
26+
class TestRootEntity(AggregateTestCase):
2727
async def test_create(self):
2828
observed = await Car.create(doors=3, color="blue")
2929
expected = Car(

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_models/test_root/test_broker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
)
1616
from tests.utils import (
1717
Car,
18-
MinosTestCase,
18+
AggregateTestCase,
1919
Owner,
2020
)
2121

2222

23-
class TestRootEntityBroker(MinosTestCase):
23+
class TestRootEntityBroker(AggregateTestCase):
2424
async def test_create(self):
2525
car = await Car.create(doors=3, color="blue")
2626

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_models/test_root/test_differences.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
)
1515
from tests.utils import (
1616
Car,
17-
MinosTestCase,
17+
AggregateTestCase,
1818
)
1919

2020

21-
class TestRootEntityDifferences(MinosTestCase):
21+
class TestRootEntityDifferences(AggregateTestCase):
2222
async def asyncSetUp(self) -> None:
2323
self.uuid = uuid4()
2424
self.uuid_another = uuid4()

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_models/test_root/test_not_provided.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
)
1212
from tests.utils import (
1313
Car,
14-
MinosTestCase,
14+
AggregateTestCase,
1515
)
1616

1717

18-
class TestRootEntityNotProvided(MinosTestCase):
18+
class TestRootEntityNotProvided(AggregateTestCase):
1919
async def test_create_raises(self):
2020
with self.assertRaises(NotProvidedException):
2121
await Car.create(doors=3, color="blue", _event_repository=None)

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_models/test_root/test_with_postgresql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
from tests.utils import (
1515
CONFIG_FILE_PATH,
1616
Car,
17-
MinosTestCase,
17+
AggregateTestCase,
1818
Order,
1919
OrderItem,
2020
Review,
2121
)
2222

2323

24-
class TestExternalEntityWithPostgreSql(MinosTestCase, PostgresAsyncTestCase):
24+
class TestExternalEntityWithPostgreSql(AggregateTestCase, PostgresAsyncTestCase):
2525
CONFIG_FILE_PATH = CONFIG_FILE_PATH
2626

2727
def setUp(self):

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_refs/test_injectors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
)
1414
from tests.utils import (
1515
Car,
16-
MinosTestCase,
16+
AggregateTestCase,
1717
)
1818

1919

20-
class TestRefInjector(MinosTestCase):
20+
class TestRefInjector(AggregateTestCase):
2121
async def test_simple(self):
2222
model = await Car.create(3, "test")
2323
mapper = {model.uuid: model}

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_refs/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
ModelType,
2626
)
2727
from tests.utils import (
28-
MinosTestCase,
28+
AggregateTestCase,
2929
)
3030

3131
FakeMessage = ModelType.build("FakeMessage", {"content": Any})
@@ -34,7 +34,7 @@
3434
Foo = ModelType.build("Foo", {"another": Ref[Bar]})
3535

3636

37-
class TestRef(MinosTestCase):
37+
class TestRef(AggregateTestCase):
3838
def test_subclass(self):
3939
# noinspection PyTypeHints
4040
self.assertTrue(issubclass(Ref, (DeclarativeModel, UUID, Generic)))

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_entities/test_refs/test_resolvers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
BrokerMessageV1Status,
2020
)
2121
from tests.utils import (
22-
MinosTestCase,
22+
AggregateTestCase,
2323
)
2424

2525
Bar = ModelType.build("Bar", {"uuid": UUID, "version": int})
2626
Foo = ModelType.build("Foo", {"uuid": UUID, "version": int, "another": Ref[Bar]})
2727

2828

29-
class TestRefResolver(MinosTestCase):
29+
class TestRefResolver(AggregateTestCase):
3030
def setUp(self) -> None:
3131
super().setUp()
3232
self.resolver = RefResolver()

packages/core/minos-microservice-aggregate/tests/test_aggregate/test_events/test_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
)
2727
from tests.utils import (
2828
Car,
29-
MinosTestCase,
29+
AggregateTestCase,
3030
Owner,
3131
)
3232

3333

34-
class TestFieldDiffContainer(MinosTestCase):
34+
class TestFieldDiffContainer(AggregateTestCase):
3535
async def asyncSetUp(self) -> None:
3636
await super().asyncSetUp()
3737
self.car_one = Car(3, "blue", id=1, version=1)

0 commit comments

Comments
 (0)