Skip to content

Commit 6a3ac71

Browse files
committed
Make sure the DI container is wired to the socketio_app
1 parent 769db0d commit 6a3ac71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/socketio_app/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def create_app(
1919
test_di_container: Union[Container, None] = None,
2020
) -> Router:
2121
_config = test_config or AppConfig()
22-
application_init(_config, test_di_container)
22+
ref = application_init(_config, test_di_container)
23+
ref.di_container.wire(packages=["socketio_app"])
2324

2425
# SocketIO App
2526
sio = socketio.AsyncServer(async_mode="asgi")

0 commit comments

Comments
 (0)