mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-22 18:22:40 +00:00
Just use a real Tub for this case
This commit is contained in:
parent
c3aff634a0
commit
34b5068f5c
@ -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
|
Create a ``StorageFarmBroker`` with the given tub maker and an empty
|
||||||
client configuration.
|
client configuration.
|
||||||
"""
|
"""
|
||||||
|
if tub_maker is None:
|
||||||
|
tub_maker = lambda handler_overrides: Tub()
|
||||||
return StorageFarmBroker(True, tub_maker, EMPTY_CLIENT_CONFIG)
|
return StorageFarmBroker(True, tub_maker, EMPTY_CLIENT_CONFIG)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user