Return mock logger instance. Keep in mind that this method returns Mock class instance which means you can use all the usual Mock class methods to assert that a particular message has been logged / logger has been called with particular arguments.
(self, name)
| 62 | return self._datastore_service |
| 63 | |
| 64 | def get_logger(self, name): |
| 65 | """ |
| 66 | Return mock logger instance. |
| 67 | |
| 68 | Keep in mind that this method returns Mock class instance which means you can use all the |
| 69 | usual Mock class methods to assert that a particular message has been logged / logger has |
| 70 | been called with particular arguments. |
| 71 | """ |
| 72 | return self._logger |
| 73 | |
| 74 | def dispatch(self, trigger, payload=None, trace_tag=None): |
| 75 | trace_context = TraceContext(trace_tag=trace_tag) if trace_tag else None |
no outgoing calls