We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f2c312 commit cdffc45Copy full SHA for cdffc45
1 file changed
roborock/devices/README.md
@@ -659,13 +659,19 @@ To reduce API calls and improve reliability:
659
660
### Testing
661
662
+Test structur mirrors the python module structure. For example,
663
+the module `roborock.devices.traits.v1.maps` is tested in the file
664
+`tests/devices/traits/v1/test_maps.py`. Each test file corresponds to a python
665
+module.
666
+
667
The test suite uses mocking extensively to avoid real devices:
668
669
- `Mock` and `AsyncMock` for channels and sessions
670
- Fake message generators (`mqtt_packet.gen_publish()`)
671
- Snapshot testing for complex data structures
672
- Time-based tests use small timeouts (10-50ms) for speed
673
674
675
Example test structure:
676
```python
677
@pytest.fixture
0 commit comments