Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
147 stars 61 forks source link

ServiceBusMessage testing fix #192

Closed hallvictoria closed 8 months ago

hallvictoria commented 9 months ago

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

Fixes https://github.com/Azure/azure-functions-python-worker/issues/1321

codecov[bot] commented 9 months ago

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 :warning:
Additional details and impacted files ```diff @@ 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](https://app.codecov.io/gh/Azure/azure-functions-python-library/pull/192/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/Azure/azure-functions-python-library/pull/192/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | `92.96% <94.87%> (+1.74%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.