Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -55,12 +55,16 @@ class FakeConfig: ...@@ -55,12 +55,16 @@ class FakeConfig:
class FakeProc: class FakeProc:
"""Fake processor object""" """Fake processor object"""
def LogWarning(self, msg): def LogWarning(self, msg, *args, **kwargs):
pass pass
def LogInfo(self, msg): def LogInfo(self, msg, *args, **kwargs):
pass pass
def LogStep(self, current, total, message):
pass
class FakeContext: class FakeContext:
"""Fake context object""" """Fake context object"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment