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

Use spec and spec_set in more mocks #556

Merged
merged 1 commit into from
May 9, 2023

Conversation

puddly
Copy link
Contributor

@puddly puddly commented May 9, 2023

Unit tests did not catch that EZSP startup failed due to an improperly used context manager (sync vs async) because of too much mocking. In the future, central mocks should be replaced by patched objects.

@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (36c3445) 99.76% compared to head (94496bf) 99.76%.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #556   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          62       62           
  Lines        4594     4594           
=======================================
  Hits         4583     4583           
  Misses         11       11           
Impacted Files Coverage Δ
bellows/zigbee/application.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@puddly puddly merged commit 50c80cd into zigpy:dev May 9, 2023
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.

1 participant