blpapi.test.createTopic

blpapi.test.createTopic(service, isActive=True)

Create a valid blpapi.Topic with the specified service to support testing publishers. The expected use case is to support returning a custom blpapi.Topic while mocking blpapi.ProviderSession.getTopic() methods.

Parameters
Returns

A valid blpapi.Topic with the specified service.

Return type

Topic