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
) – Theblpapi.Service
to which the returnedblpapi.Topic
will belong.isActive (
bool
) – Optional. Specifies whether the returnedblpapi.Topic
is active.
- Return type
- Returns
A valid
blpapi.Topic
with the specifiedservice
.