diff --git a/test.py b/test.py index 86e270b..213477c 100644 --- a/test.py +++ b/test.py @@ -31,7 +31,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 @@ -71,7 +71,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