Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
@pytest.fixture
async def app() -> faststream.FastStream:
app_ = faststream.FastStream(NatsBroker())
setup_di(app_, container=Container(groups=[Dependencies]))
setup_di(app_, container=Container(groups=[Dependencies], validate=True))
return app_
2 changes: 1 addition & 1 deletion tests/test_faststream_di.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def index_subscriber(

async def test_app_without_broker() -> None:
with pytest.raises(RuntimeError, match="Broker must be defined to setup DI"):
modern_di_faststream.setup_di(faststream.FastStream(), container=Container())
modern_di_faststream.setup_di(faststream.FastStream(), container=Container(validate=True))


def test_fetch_di_container(app: faststream.FastStream) -> None:
Expand Down