File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -659,13 +659,19 @@ To reduce API calls and improve reliability:
659659
660660### Testing
661661
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+
662667The test suite uses mocking extensively to avoid real devices:
663668
664669- ` Mock ` and ` AsyncMock ` for channels and sessions
665670- Fake message generators (` mqtt_packet.gen_publish() ` )
666671- Snapshot testing for complex data structures
667672- Time-based tests use small timeouts (10-50ms) for speed
668673
674+
669675Example test structure:
670676``` python
671677@pytest.fixture
You can’t perform that action at this time.
0 commit comments