blpapi.test.createTopic¶
- blpapi.test.createTopic(service, isActive=True)¶
Create a valid
blpapi.Topic
with the specifiedservice
to support testing publishers. The expected use case is to support returning a customblpapi.Topic
while mockingblpapi.ProviderSession.getTopic()
methods.- Parameters
service (Service) – The
blpapi.Service
to which the returnedblpapi.Topic
will belong.isActive (bool) – Optional. Specifies whether the returned
blpapi.Topic
is active.
- Returns
A valid
blpapi.Topic
with the specifiedservice
.- Return type