This is a mock simulation of a hardware sensor system (temperature and humidity). The goal is to showcase test automation skills using pytest
.
- Simulates sensor values for temperature and humidity
- Logs values with timestamps
- Tests:
- Sensor data within expected range
- Logger output format
- Clone the repo
- Install dependencies:
pip install -r requirements.txt
- Run tests:
pytest test_sensor.py
2025-06-03T11:44:00 | Temp: 23.5°C | Humidity: 45.2%