Skip to content

Commit

Permalink
little changes;
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Jun 13, 2023
1 parent f9b44a9 commit a4edf70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion propan/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
RabbitBroker = Annotated[RB, ContextField("broker")]
RabbitMessage = Annotated[aio_pika.message.IncomingMessage, ContextField("message")]
Channel = Annotated[
aio_pika.robust_channel.RobustChannel, ContextField("broker._channel")
aio_pika.robust_channel.RobustChannel, ContextField("broker.channel")
]
except Exception:
RabbitBroker = RabbitMessage = Channel = about.INSTALL_RABBIT
Expand Down
3 changes: 2 additions & 1 deletion tests/fastapi/test_rabbit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import Mock

import pytest
from fastapi import FastAPI
from unittest.mock import Mock

from propan.fastapi import RabbitRouter
from propan.test import TestRabbitBroker
Expand Down

0 comments on commit a4edf70

Please sign in to comment.