PrashanthB461 commited on
Commit
85750d1
·
verified ·
1 Parent(s): 6b52b34

Create test_notification.py

Browse files
Files changed (1) hide show
  1. tests/test_notification.py +6 -0
tests/test_notification.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # tests/test_notification.py
2
+
3
+ def test_send_alert():
4
+ violation = {'violation_type': 'No Helmet', 'severity': 'Critical'}
5
+ send_alert(violation)
6
+ # Here you can mock or check if send_alert() works as expected