From eb4f704597d6707e8babbd48dc9257bc42ff3ea0 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Thu, 4 Aug 2022 13:41:55 +0530 Subject: [PATCH] UT: Hacky workaround in StubDIContainer to get the tests passing for now --- monkey/tests/common/stub_di_container.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monkey/tests/common/stub_di_container.py b/monkey/tests/common/stub_di_container.py index bed434145..85034fc79 100644 --- a/monkey/tests/common/stub_di_container.py +++ b/monkey/tests/common/stub_di_container.py @@ -7,6 +7,10 @@ T = TypeVar("T") class StubDIContainer(DIContainer): + def __init__(self): + super().__init__() + self._convention_registry[(Sequence[str], "local_ip_addresses")] = [] + def resolve(self, type_: Type[T]) -> T: try: return super().resolve(type_)