Commit c071c5b3 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix unittests broken by commit 2bb5c911



File "../test/ganeti.hooks_unittest.py", line 239, in setUp
  self.lu = FakeLU(FakeProc(), self.op, self.context, None)
File "…/ganeti/cmdlib.py", line 92, in __init__
  self.LogStep = processor.LogStep
AttributeError: FakeProc instance has no attribute 'LogStep'
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 2bb5c911
......@@ -61,6 +61,10 @@ class FakeProc:
def LogInfo(self, msg, *args, **kwargs):
pass
def LogStep(self, current, total, message):
pass
class FakeContext:
"""Fake context object"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment