Skip to content

Suppress expected warnings in tests#696

Draft
TheJulianJES wants to merge 1 commit intozigpy:devfrom
TheJulianJES:tjj/silence_warnings_pytest
Draft

Suppress expected warnings in tests#696
TheJulianJES wants to merge 1 commit intozigpy:devfrom
TheJulianJES:tjj/silence_warnings_pytest

Conversation

@TheJulianJES
Copy link
Contributor

This filters expected warnings triggered by various tests.
Alternatively, we can also add this to our pyproject.toml. Adding it to the individual tests or modules doesn't really work here, except if we want to add it to basically all.


EXPECTED_WARNING_FILTERS = (
r"ignore:Attribute '.*' has `is_manufacturer_specific` without an explicit `manufacturer_code`\. Please set `manufacturer_code=0x[0-9A-Fa-f]+`\.:DeprecationWarning",
r"ignore:Unique IDs are unique only with platform prefix.*:UserWarning",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, unique IDs only being unique within a platform is expected and this is logged quite a bit.
I can remove this, of corse, but I think it might make sense to keep until we've migrated away from intentionally using that?

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.51%. Comparing base (9d03d63) to head (8f9e83f).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #696   +/-   ##
=======================================
  Coverage   97.51%   97.51%           
=======================================
  Files          62       62           
  Lines       10949    10949           
=======================================
  Hits        10677    10677           
  Misses        272      272           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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