From 22ebf01e205e5c1c72bcc3fb968a20f385fd5358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 29 Apr 2020 12:16:27 +0200 Subject: [PATCH] fix some tests --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index b156e07..0b46052 100644 --- a/test.py +++ b/test.py @@ -29,7 +29,7 @@ def test_generate_string(mocker): comm = communicator.Communicator( currentconsumer="localhost", uuid=generateduuid) - mess = messagesender.MessageSender(communicator=comm) + mess = messagesender.MessageSender(communicator=comm, uuid=generateduuid) msg = mess.randomstring(stringlength=32) assert isinstance(msg, str) assert len(msg) == 32 @@ -69,7 +69,7 @@ def test_send_message(mocker): comm = communicator.Communicator( currentconsumer="127.0.0.1", uuid=generateduuid) - mess = messagesender.MessageSender(communicator=comm) + mess = messagesender.MessageSender(communicator=comm, uuid=generateduuid) messa = "SENDING" msg = mess.sendmessage(message=messa) assert msg is None