l.s.l.testing : module documentation

Part of lp.services.longpoll

Things that help with testing of longpoll.
Class LoggingRouter A test double for IMessageProducer.
Function capture_longpoll_emissions Capture longpoll emissions while this context is in force.
@contextmanager
def capture_longpoll_emissions():
Capture longpoll emissions while this context is in force.

This returns a list in which LongPollEventRecord tuples will be recorded, in the order they're emitted.

Note that normal event emission is suppressed globally while this context is in force; all events will be stored in the log.

API Documentation for Launchpad, generated by pydoctor at 2018-02-17 00:00:03.