fix some tests

This commit is contained in:
Torma Kristóf 2020-04-29 12:16:27 +02:00
parent 96a91c4154
commit 22ebf01e20
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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