Skip to content

How to test ServiceBus Trigger? Create ServiceBusMessage in unit tests #1321

Closed
Azure/azure-functions-python-library
#192
@karpikpl

Description

@karpikpl

Is your question related to a specific version? If so, please specify: no

What binding does your question apply to, if any? (e.g. Blob Trigger, Event Hub Binding, etc)

ServiceBus

Question

How to create ServiceBusMessage in unit tests?
Could you add examples for unit testing bindings other than http?

I'm getting "does not accept parameters" error when I try to create the ServiceBusMessage.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions