Skip to content

Commit

Permalink
Merge pull request #57 from minos-framework/0.2.1
Browse files Browse the repository at this point in the history
v0.2.1
  • Loading branch information
Sergio García Prado authored Apr 6, 2022
2 parents 1552a85 + d898aa4 commit 46adf30
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Test{{aggregate}}(unittest.IsolatedAsyncioTestCase):
self.injector = build_dependency_injector()

async def asyncSetUp(self) -> None:
await self.injector.wire_and_destroy_injections()
await self.injector.wire_and_setup_injections()

async def asyncTearDown(self) -> None:
await self.injector.unwire_and_destroy_injections()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Test{{aggregate}}CommandService(unittest.IsolatedAsyncioTestCase):
await self.injector.wire_and_setup_injections()

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

def test_constructor(self):
service = {{ aggregate }}CommandService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def build_dependency_injector() -> DependencyInjector:
InMemoryTransactionRepository,
InMemoryEventRepository,
InMemorySnapshotRepository,
FooQueryServiceRepository,
{{ aggregate }}QueryServiceRepository,
],
)

Expand Down
2 changes: 1 addition & 1 deletion project/database/postgres/deploy/docker-compose/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def build_docker_compose(path: Path) -> str:
"restart": "always",
"build": "external/postgres",
"command": "postgres -c 'max_connections=200'",
"ports": ["5432"],
"ports": ["5432:5432"],
"volumes": ["postgres:/var/lib/postgresql/data",],
"environment": {"POSTGRES_USER": "minos", "POSTGRES_PASSWORD": "min0s",},
}
Expand Down

0 comments on commit 46adf30

Please sign in to comment.