blpapi.test.createTopic
- blpapi.test.createTopic(service, isActive=True)
Create a valid
blpapi.Topicwith the specifiedserviceto support testing publishers. The expected use case is to support returning a customblpapi.Topicwhile mockingblpapi.ProviderSession.getTopic()methods.- Parameters:
service (
Service) – Theblpapi.Serviceto which the returnedblpapi.Topicwill belong.isActive (
bool) – Optional. Specifies whether the returnedblpapi.Topicis active.
- Return type:
- Returns:
A valid
blpapi.Topicwith the specifiedservice.