MCPcopy Create free account
hub / github.com/OpenAssetIO/OpenAssetIO / MockHostInterface

Class MockHostInterface

src/openassetio-python/tests/conftest.py:556–573  ·  view source on GitHub ↗

`HostInterface` implementation that delegates all calls to a public `Mock` instance.

Source from the content-addressed store, hash-verified

554
555
556class MockHostInterface(HostInterface):
557 """
558 `HostInterface` implementation that delegates all calls to a public
559 `Mock` instance.
560 """
561
562 def __init__(self):
563 super().__init__()
564 self.mock = mock.create_autospec(HostInterface, spec_set=True, instance=True)
565
566 def identifier(self):
567 return self.mock.identifier()
568
569 def displayName(self):
570 return self.mock.displayName()
571
572 def info(self):
573 return self.mock.info()
574
575
576class MockLogger(LoggerInterface):

Callers 1

mock_host_interfaceFunction · 0.70

Calls

no outgoing calls

Tested by 1

mock_host_interfaceFunction · 0.56