15 lines
395 B
Python
15 lines
395 B
Python
"""Tests for DI container."""
|
|
|
|
from app.infrastructure.di.container import create_container
|
|
|
|
|
|
class TestContainer:
|
|
"""Test DI container creation."""
|
|
|
|
def test_create_container(self) -> None:
|
|
"""Test container factory returns AsyncContainer."""
|
|
from dishka import AsyncContainer
|
|
|
|
container = create_container()
|
|
assert isinstance(container, AsyncContainer)
|