toddlers/tests/plugins/test_debug.py
Michal Konečný d9c03e08ce Fix formatting for for black > 23
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2023-02-03 14:33:39 +01:00

16 lines
435 B
Python

import fedora_messaging.api
from toddlers.plugins.debug import DebugToddler
class TestDebugToddler:
toddler_cls = DebugToddler
def test_accepts_topic(self, toddler):
assert toddler.accepts_topic("foo.bar")
def test_process(self, toddler):
msg = fedora_messaging.api.Message()
msg.id = 123
msg.topic = "toddlers.test.topic"
assert toddler.process(config={}, message=msg) is None