Mock out more workers in squeak node unit test (#1565)

This commit is contained in:
Jonathan Zernik 2021-10-11 19:12:26 -07:00 committed by GitHub
parent ace600f4c6
commit 956390e1fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,10 @@ def squeak_node(request):
mock.patch('squeaknode.node.squeak_node.SqueakOfferExpiryWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.ProcessReceivedPaymentsWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.PeerConnectionWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.SqueakDeletionWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.UpdateSubscribedSqueaksWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.UpdateSubscribedSecretKeysWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.PeerSubscriptionUpdateWorker', autospec=True), \
mock.patch('squeaknode.node.squeak_node.SqueakAdminWebServer', autospec=True):
config = get_config(request.param)
yield SqueakNode(config)