X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Ftests%2Funit%2Futils.py;h=7e8907fc58ba4f5012466c5b2f60b23201a5fcae;hp=2f107a71eebb39debf542b7ad1f73824f7b54c0f;hb=2962f3e7aba84b4584d2deac30d1c163f6441a03;hpb=e69aea9ff905a2cd9376ca1a6f2c1a345d78daca;ds=sidebyside 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()]