Commit 825e13df authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix the mocks.py for 2.0 unittests



The recent change to use LogWarning with multiple arguments in
mpcu.py/HooksMaster broke the (simple) mock we have in the tests.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 9bb31ea8
......@@ -55,12 +55,16 @@ class FakeConfig:
class FakeProc:
"""Fake processor object"""
def LogWarning(self, msg):
def LogWarning(self, msg, *args, **kwargs):
pass
def LogInfo(self, msg):
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