Skip to content

[SENSOR] Write unit tests for all sensor classes #9

Closed
ezehf2 opened this issue Mar 5, 2026 · 0 comments
Closed

[SENSOR] Write unit tests for all sensor classes #9

ezehf2 opened this issue Mar 5, 2026 · 0 comments
Assignees

Comments

@ezehf2
Copy link
Owner

ezehf2 commented Mar 5, 2026

Create a tests/ folder and write a pytest test file for each sensor class. Each test file should check that the generate_reading() method returns valid JSON, that the value falls within the expected range, that the sensor type and room fields are present and correct, and that consecutive readings show drift rather than random jumps. Run all tests with pytest and confirm they pass before closing this issue. This is part of the QA Lead responsibility and will be checked during assessment.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
Development

No branches or pull requests

2 participants