You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second publisher does not define a default routing key because in my real scenario, this does not make much sense (all publish calls should provide a proper one). It seems that a mismatch is done to associate the pub2 mock to the mock generated by pub2.publish (hash/key of publishers using the routing key ?). Dunno if it is expected, but if a function under test publish several messages to different topics, even if the publisher is defined with one of the keys, all other mocks will not track calls properly ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Having troubles testing a RabbitBroker with a TOPIC RabbitExchange. Here is the sample code:
Python 3.11
faststream[rabbitmq] == 0.5.18
The second publisher does not define a default routing key because in my real scenario, this does not make much sense (all publish calls should provide a proper one). It seems that a mismatch is done to associate the pub2 mock to the mock generated by pub2.publish (hash/key of publishers using the routing key ?). Dunno if it is expected, but if a function under test publish several messages to different topics, even if the publisher is defined with one of the keys, all other mocks will not track calls properly ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions