Create unit tests #3
1
test.py
1
test.py
@ -197,6 +197,7 @@ def test_updateconsumer(httpserver):
|
|||||||
consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}"
|
consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}"
|
||||||
locator = consumerlocator.ConsumerLocator(
|
locator = consumerlocator.ConsumerLocator(
|
||||||
uuid=generateduuid, communicator=comm)
|
uuid=generateduuid, communicator=comm)
|
||||||
|
locator.learnconsumerlist();
|
||||||
ret = locator.updateconsumer()
|
ret = locator.updateconsumer()
|
||||||
assert ret == f"127.0.0.1:{port}"
|
assert ret == f"127.0.0.1:{port}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user