support 'filter' option for post processors (#1460)

This commit is contained in:
Mike Fährmann
2021-06-04 18:08:08 +02:00
parent 4cf40434d7
commit 3cbbefd4ed
10 changed files with 47 additions and 19 deletions

View File

@@ -37,6 +37,10 @@ class FakeJob():
self.get_logger = logging.getLogger
self.hooks = collections.defaultdict(list)
def register_hooks(self, hooks, options):
for hook, callback in hooks.items():
self.hooks[hook].append(callback)
class TestPostprocessorModule(unittest.TestCase):