From: David Stainton Date: Mon, 21 Dec 2015 16:18:19 +0000 (+0200) Subject: add hook callback X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/provisioning?a=commitdiff_plain;h=f75a9683b06e73903a6077092335d72584878366;p=tahoe-lafs%2Ftahoe-lafs.git add hook callback --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 56cd58e9..f5179769 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -1240,6 +1240,7 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase): def hook(res): uploaded_d = self.magicfolder.uploader.set_hook('processed') return uploaded_d + d.addCallback(hook) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.files_uploaded'), 1)) d.addCallback(lambda ign: self.magicfolder.finish()) return d