From f4f41683660f104f2a40d9f45924cc2531dede2d Mon Sep 17 00:00:00 2001 From: David Stainton Date: Mon, 21 Dec 2015 18:18:19 +0200 Subject: [PATCH] add hook callback --- src/allmydata/test/test_magic_folder.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.45.2