Julian Pawlowski
|
74789877ff
|
test: fix async mocking and add noqa comments for private access
Fixed test issues:
- test_resource_cleanup.py: Use AsyncMock for async_unload_entry
(was MagicMock, caused TypeError with async context)
- Added # noqa: SLF001 comments to all private member access in tests
(18 instances - legitimate test access patterns)
Test files updated:
- test_resource_cleanup.py (AsyncMock fix)
- test_interval_pool_memory_leak.py (8 noqa comments)
- test_interval_pool_optimization.py (4 noqa comments)
Impact: All tests pass linting, async tests execute correctly.
|
2025-11-25 20:44:39 +00:00 |
|