backend/alertsystem.py contains the flood and heatwave risk scoring logic but there are no automated tests in the repo (no tests/ folder, no pytest in requirements.txt). Add unit tests covering the flood/heat risk formulas with known input/output pairs, including edge cases like 0% humidity or extreme temperatures.
backend/alertsystem.py contains the flood and heatwave risk scoring logic but there are no automated tests in the repo (no tests/ folder, no pytest in requirements.txt). Add unit tests covering the flood/heat risk formulas with known input/output pairs, including edge cases like 0% humidity or extreme temperatures.