Skip to content

A Python-based simulation of temperature and humidity sensors with automated validation using Pytest. This project mimics basic hardware module testing, showcasing range checks, logging accuracy, and structured test automation — ideal for system diagnostics and low-level firmware validation use cases.

Notifications You must be signed in to change notification settings

Prabhav7111/Sensor-Pytest-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensor Module Simulator

This is a mock simulation of a hardware sensor system (temperature and humidity). The goal is to showcase test automation skills using pytest.

Features

  • Simulates sensor values for temperature and humidity
  • Logs values with timestamps
  • Tests:
    • Sensor data within expected range
    • Logger output format

How to Run

  1. Clone the repo
  2. Install dependencies:
    pip install -r requirements.txt
  3. Run tests:
    pytest test_sensor.py

Example Output

2025-06-03T11:44:00 | Temp: 23.5°C | Humidity: 45.2%

About

A Python-based simulation of temperature and humidity sensors with automated validation using Pytest. This project mimics basic hardware module testing, showcasing range checks, logging accuracy, and structured test automation — ideal for system diagnostics and low-level firmware validation use cases.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages