Just use a real Tub for this case

This commit is contained in:
Jean-Paul Calderone 2020-11-24 14:18:04 -05:00
parent c3aff634a0
commit 34b5068f5c

View File

@ -505,11 +505,13 @@ class StoragePluginWebPresence(AsyncTestCase):
)
def make_broker(tub_maker=lambda h: Mock()):
def make_broker(tub_maker=None):
"""
Create a ``StorageFarmBroker`` with the given tub maker and an empty
client configuration.
"""
if tub_maker is None:
tub_maker = lambda handler_overrides: Tub()
return StorageFarmBroker(True, tub_maker, EMPTY_CLIENT_CONFIG)