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

Class MockLogger

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

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

Source from the content-addressed store, hash-verified

574
575
576class MockLogger(LoggerInterface):
577 """
578 `LoggerInterface` implementation that delegates all calls to a
579 public `Mock` instance.
580 """
581
582 def __init__(self):
583 LoggerInterface.__init__(self)
584 self.mock = mock.create_autospec(LoggerInterface, spec_set=True, instance=True)
585
586 def log(self, severity, message):
587 self.mock.log(severity, message)
588
589 def isSeverityLogged(self, severity):
590 return self.mock.isSeverityLogged(severity)
591
592
593class MockEntityReferencePagerInterface(EntityReferencePagerInterface):

Callers 1

mock_loggerFunction · 0.70

Calls

no outgoing calls

Tested by 1

mock_loggerFunction · 0.56