Basically, we were importing publish from the fedora-messaging API, but the method in this module is also named publish which led to conflicts in function name and the wrong one was called out. This results in no messages being sent.
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
You know you can do "from fedora_messaging.api import publish as fm_publish" or similar, right?
+1
It's also incredibly easy to write a test to assert messages are published: https://fedora-messaging.readthedocs.io/en/stable/testing.html
Yes I wasn't sure if one way is recommended vs the other so I went with this one, seemed more explicit :)
I need to get on this clearly, thanks for the link! :)
Pull-Request has been merged by pingou
Basically, we were importing publish from the fedora-messaging API, but
the method in this module is also named publish which led to conflicts
in function name and the wrong one was called out.
This results in no messages being sent.
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr