Spaces:
Runtime error
Runtime error
Create test_notification.py
Browse files
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
|