Skip to content

Commit 46adf30

Browse files
author
Sergio García Prado
authored
Merge pull request #57 from minos-framework/0.2.1
v0.2.1
2 parents 1552a85 + d898aa4 commit 46adf30

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

microservice/language/python/init/tests/test_aggregates.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Test{{aggregate}}(unittest.IsolatedAsyncioTestCase):
1616
self.injector = build_dependency_injector()
1717

1818
async def asyncSetUp(self) -> None:
19-
await self.injector.wire_and_destroy_injections()
19+
await self.injector.wire_and_setup_injections()
2020

2121
async def asyncTearDown(self) -> None:
2222
await self.injector.unwire_and_destroy_injections()

microservice/language/python/init/tests/test_commands/test_services.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Test{{aggregate}}CommandService(unittest.IsolatedAsyncioTestCase):
2424
await self.injector.wire_and_setup_injections()
2525

2626
async def asyncTearDown(self) -> None:
27-
await self.injector.unwire_and_setup_injections()
27+
await self.injector.unwire_and_destroy_injections()
2828

2929
def test_constructor(self):
3030
service = {{ aggregate }}CommandService()

microservice/language/python/init/tests/utils.py renamed to microservice/language/python/init/tests/utils.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def build_dependency_injector() -> DependencyInjector:
8383
InMemoryTransactionRepository,
8484
InMemoryEventRepository,
8585
InMemorySnapshotRepository,
86-
FooQueryServiceRepository,
86+
{{ aggregate }}QueryServiceRepository,
8787
],
8888
)
8989

project/database/postgres/deploy/docker-compose/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def build_docker_compose(path: Path) -> str:
2424
"restart": "always",
2525
"build": "external/postgres",
2626
"command": "postgres -c 'max_connections=200'",
27-
"ports": ["5432"],
27+
"ports": ["5432:5432"],
2828
"volumes": ["postgres:/var/lib/postgresql/data",],
2929
"environment": {"POSTGRES_USER": "minos", "POSTGRES_PASSWORD": "min0s",},
3030
}

0 commit comments

Comments
 (0)