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

Class MockUIDelegateInterface

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

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

Source from the content-addressed store, hash-verified

616
617
618class MockUIDelegateInterface(UIDelegateInterface):
619 """
620 `UIDelegateInterface` implementation that delegates all calls to a
621 public `Mock` instance.
622 """
623
624 def __init__(self):
625 super().__init__()
626 self.mock = mock.create_autospec(UIDelegateInterface, spec_set=True, instance=True)
627
628 def identifier(self):
629 return self.mock.identifier()
630
631 def displayName(self):
632 return self.mock.displayName()
633
634 def info(self):
635 return self.mock.info()
636
637 def settings(self, hostSession):
638 return self.mock.settings(hostSession)
639
640 def initialize(self, uiDelegateSettings, hostSession):
641 return self.mock.initialize(uiDelegateSettings, hostSession)
642
643 def close(self, hostSession):
644 return self.mock.close(hostSession)
645
646 def uiPolicy(self, uiTraitSet, uiAccess, context, hostSession):
647 return self.mock.uiPolicy(uiTraitSet, uiAccess, context, hostSession)
648
649 def populateUI(self, uiTraitsData, uiAccess, uiRequest, context, hostSession):
650 return self.mock.populateUI(uiTraitsData, uiAccess, uiRequest, context, hostSession)
651
652
653class MockUIDelegateRequestInterface(UIDelegateRequestInterface):

Callers 1

creatorFunction · 0.70

Calls

no outgoing calls

Tested by 1

creatorFunction · 0.56