File tree Expand file tree Collapse file tree 4 files changed +3
-30
lines changed
packages/plugins/minos-broker-rabbitmq Expand file tree Collapse file tree 4 files changed +3
-30
lines changed Original file line number Diff line number Diff line change 11# History
22
3- ## 0.5 .0 (2022-02-03 )
3+ ## 0.6 .0 (2022-03-25 )
44
5- * Migrate ` PostgreSqlQueuedKafkaBrokerPublisher ` from ` minos-microservice-networks ` .
6- * Migrate ` InMemoryQueuedKafkaBrokerPublisher ` from ` minos-microservice-networks ` .
7- * Migrate ` KafkaBrokerPublisher ` from ` minos-microservice-networks ` .
8- * Migrate ` KafkaBrokerSubscriber ` from ` minos-microservice-networks ` .
9- * Migrate ` KafkaBrokerSubscriberBuilder ` from ` minos-microservice-networks ` .
10- * Migrate ` PostgreSqlQueuedKafkaBrokerSubscriberBuilder ` from ` minos-microservice-networks ` .
11- * Migrate ` InMemoryQueuedKafkaBrokerSubscriberBuilder ` from ` minos-microservice-networks ` .
12- * Minor changes.
13-
14- ## 0.5.1 (2022-02-03)
15-
16- * Fix bug related with dependency specification.
5+ * Created RabbitMQ plugin.
Original file line number Diff line number Diff line change 1- import asyncio
21from unittest import (
32 IsolatedAsyncioTestCase ,
43)
@@ -30,4 +29,4 @@ async def test_one_topic(self):
3029
3130 async def test_empty_topic (self ):
3231 async with RabbitMQBrokerSubscriber .from_config (CONFIG_FILE_PATH , topics = {"empty_topic" }) as subscriber :
33- observed = await subscriber .receive ()
32+ await subscriber .receive ()
Original file line number Diff line number Diff line change 11import unittest
22from unittest .mock import (
3- AsyncMock ,
43 patch ,
54)
65
7- import aio_pika
8-
96from minos .common import (
107 Config ,
11- MinosConfig ,
128)
139from minos .networks import (
14- BrokerMessage ,
1510 BrokerMessageV1 ,
1611 BrokerMessageV1Payload ,
1712 BrokerPublisher ,
Original file line number Diff line number Diff line change 33 namedtuple ,
44)
55from unittest .mock import (
6- AsyncMock ,
7- MagicMock ,
86 patch ,
97)
108
119from minos .common import (
1210 Config ,
13- MinosConfig ,
1411)
1512from minos .networks import (
16- BrokerMessageV1 ,
17- BrokerMessageV1Payload ,
1813 BrokerSubscriber ,
1914 InMemoryBrokerSubscriberQueue ,
2015 PostgreSqlBrokerSubscriberQueue ,
@@ -50,11 +45,6 @@ async def test_from_config(self):
5045 @patch ("minos.plugins.rabbitmq.subscriber.connect" )
5146 @patch ("minos.networks.BrokerMessage.from_avro_bytes" )
5247 async def test_receive (self , connect_mock , mock_avro ):
53- messages = [
54- BrokerMessageV1 ("foo" , BrokerMessageV1Payload ("bar" )),
55- BrokerMessageV1 ("bar" , BrokerMessageV1Payload ("foo" )),
56- ]
57-
5848 async with RabbitMQBrokerSubscriber .from_config (CONFIG_FILE_PATH , topics = {"foo" , "bar" }) as subscriber :
5949 await subscriber .receive ()
6050
You can’t perform that action at this time.
0 commit comments