Added uuid to MessageSender in tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Scharnitzky Donát 2020-04-17 19:25:13 +02:00
parent f0822580f1
commit 7e9354be18

View File

@ -31,7 +31,7 @@ def test_generate_string(mocker):
comm = communicator.Communicator( comm = communicator.Communicator(
currentconsumer="localhost", currentconsumer="localhost",
uuid=generateduuid) uuid=generateduuid)
mess = messagesender.MessageSender(communicator=comm) mess = messagesender.MessageSender(communicator=comm, uuid=generateduuid)
msg = mess.randomstring(stringlength=32) msg = mess.randomstring(stringlength=32)
assert isinstance(msg, str) assert isinstance(msg, str)
assert len(msg) == 32 assert len(msg) == 32
@ -71,7 +71,7 @@ def test_send_message(mocker):
comm = communicator.Communicator( comm = communicator.Communicator(
currentconsumer="127.0.0.1", currentconsumer="127.0.0.1",
uuid=generateduuid) uuid=generateduuid)
mess = messagesender.MessageSender(communicator=comm) mess = messagesender.MessageSender(communicator=comm, uuid=generateduuid)
messa = "SENDING" messa = "SENDING"
msg = mess.sendmessage(message=messa) msg = mess.sendmessage(message=messa)
assert msg is None assert msg is None