forked from p15670423/monkey
UT: Hacky workaround in StubDIContainer to get the tests passing for now
This commit is contained in:
parent
144268187f
commit
eb4f704597
|
@ -7,6 +7,10 @@ T = TypeVar("T")
|
||||||
|
|
||||||
|
|
||||||
class StubDIContainer(DIContainer):
|
class StubDIContainer(DIContainer):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
|
self._convention_registry[(Sequence[str], "local_ip_addresses")] = []
|
||||||
|
|
||||||
def resolve(self, type_: Type[T]) -> T:
|
def resolve(self, type_: Type[T]) -> T:
|
||||||
try:
|
try:
|
||||||
return super().resolve(type_)
|
return super().resolve(type_)
|
||||||
|
|
Loading…
Reference in New Issue