mirror of
https://github.com/OMGeeky/flucto-heisskleber.git
synced 2026-01-02 17:46:38 +01:00
* Add registry for all senders, receivers and config files. Minor tweaks to signatures of SerialReceiver and ConsoleSender to maintain compability with ather Senders and Receivers. * fixed failing console test * fixed import order --------- Co-authored-by: Aljoscha Sander <aljoscha@flucto.tech>
14 lines
308 B
Python
14 lines
308 B
Python
import pytest
|
|
|
|
from heisskleber.console import ConsoleConf, ConsoleSender
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_console_sink(capsys) -> None:
|
|
sink = ConsoleSender(ConsoleConf())
|
|
await sink.send({"key": 3}, "test")
|
|
|
|
captured = capsys.readouterr()
|
|
|
|
assert captured.out == 'test:\t{"key": 3}\n'
|