SonarCloud Python Code Coverage Result Doesn't Match

Hey there.

To diagnose issues like these, it would be good to find a specific file where the coverage in SonarCloud doesn’t match what’s reported in your coverage report.

Also remember that SonarCloud will calculate coverage for all files, not just the ones calculated in your coverage report. If your repository has other files that can be covered by tests, they contribute to the coverage calculation as well.

Pay attention also to any logs that surround the import of code coverage: