UT: Hacky workaround in StubDIContainer to get the tests passing for now

This commit is contained in:
Shreya Malviya 2022-08-04 13:41:55 +05:30
parent 144268187f
commit eb4f704597
1 changed files with 4 additions and 0 deletions

View File

@ -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_)