Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceBusMessage testing fix #192

Merged
merged 10 commits into from
Nov 14, 2023
Merged

Conversation

hallvictoria
Copy link
Contributor

@hallvictoria hallvictoria commented Oct 17, 2023

_servicebus.py is no longer an abstract class. ServiceBusMessage can now be tested similarly to QueueMessage and HTTPRequest in unit tests.

Fixes Azure/azure-functions-python-worker#1321

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (717bf06) 91.25% compared to head (6baa94a) 92.96%.

Files Patch % Lines
azure/functions/_servicebus.py 94.73% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #192      +/-   ##
==========================================
+ Coverage   91.25%   92.96%   +1.71%     
==========================================
  Files          57       56       -1     
  Lines        3406     3027     -379     
  Branches      847      286     -561     
==========================================
- Hits         3108     2814     -294     
+ Misses        220      132      -88     
- Partials       78       81       +3     
Flag Coverage Δ
unittests 92.96% <94.87%> (+1.74%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hallvictoria hallvictoria merged commit b42035a into dev Nov 14, 2023
12 of 13 checks passed
@hallvictoria hallvictoria deleted the hallvictoria/servicebus-testing branch November 14, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to test ServiceBus Trigger? Create ServiceBusMessage in unit tests
3 participants