From: David Stainton Date: Mon, 21 Dec 2015 16:18:19 +0000 (+0200) Subject: add hook callback X-Git-Url: https://git.rkrishnan.org/frontends/simplejson/%3C?a=commitdiff_plain;h=238fed10e1c3ffcc975afe56053e9d315c444998;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