Skip to content

chore: Fix warning in tests/devices/test_device_manager.py#412

Merged
allenporter merged 2 commits intoPython-roborock:mainfrom
allenporter:test-warning-device-manager
Jul 5, 2025
Merged

chore: Fix warning in tests/devices/test_device_manager.py#412
allenporter merged 2 commits intoPython-roborock:mainfrom
allenporter:test-warning-device-manager

Conversation

@allenporter
Copy link
Contributor

@allenporter allenporter commented Jul 5, 2025

Fix warning in device manager test due to the unsub value being assumed a coroutine.

tests/devices/test_device_manager.py::test_with_device
tests/devices/test_device_manager.py::test_get_non_existent_device
/Users/allen/Development/python-roborock/roborock/devices/device.py:100: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
self._unsub()
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

@allenporter allenporter merged commit ec780c9 into Python-roborock:main Jul 5, 2025
6 checks passed
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