X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=n2vc%2Ftests%2Funit%2Futils.py;h=7e8907fc58ba4f5012466c5b2f60b23201a5fcae;hb=4395cfa6c7d0d80980c00d9f078440e0333fd826;hp=2f107a71eebb39debf542b7ad1f73824f7b54c0f;hpb=eb8943a887e2fb8cce0240382811f9e504f3c7fb;p=osm%2FN2VC.git diff --git a/n2vc/tests/unit/utils.py b/n2vc/tests/unit/utils.py index 2f107a7..7e8907f 100644 --- a/n2vc/tests/unit/utils.py +++ b/n2vc/tests/unit/utils.py @@ -159,7 +159,7 @@ class FakeUnit(MagicMock): async def is_leader_from_status(self): return True - async def run_action(self, action_name): + async def run_action(self, action_name, **kwargs): return FakeAction() @@ -176,6 +176,9 @@ class FakeApplication(AsyncMock): async def get_config(self): return ["app_config"] + async def scale(self, scale): + pass + units = [FakeUnit(), FakeUnit()]