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

Tests: Improve full-stack testing without mocking whole modules #615

Merged
merged 3 commits into from
Nov 20, 2022

Conversation

amotl
Copy link
Member

@amotl amotl commented Nov 20, 2022

Previously, the test suite used the surrogate package, because it was not ensured that all third-party packages would have been installed within the testing environment.

Now, with b4c4619, all third-party packages will always be installed when installing the "test" extra, in order to enable full-stack testing, and improve the overall quality of the test suite.

702fa76 disables testing the apns service plugin, because the apns package is not ready for Python3. For upgrading to a successor library, see also #580.

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2022

Codecov Report

Merging #615 (b839aa7) into main (aa9f8dd) will decrease coverage by 0.88%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #615      +/-   ##
==========================================
- Coverage   37.56%   36.68%   -0.89%     
==========================================
  Files          80       80              
  Lines        3604     3604              
==========================================
- Hits         1354     1322      -32     
- Misses       2250     2282      +32     
Flag Coverage Δ
unittests 36.68% <ø> (-0.89%) ⬇️

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

Impacted Files Coverage Δ
mqttwarn/services/apns.py 0.00% <0.00%> (-100.00%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Instead, with b4c4619, "all" third-party packages will always be
installed when installing the "test" extra, in order to enable
full-stack testing.

References: b4c4619, 910f0b7
The `apns` package is not ready for Python3.
@amotl amotl merged commit 4f582d4 into main Nov 20, 2022
@amotl amotl deleted the amo/tests-no-surrogate branch November 20, 2022 23:28
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.

2 participants