2021-09-16 22:41:29 +00:00
|
|
|
from helpers.alert_manager import AlertProvider
|
|
|
|
from package import BETA
|
|
|
|
from baps_types.alert import WARNING, Alert
|
|
|
|
# Dummy alert provider for testing basics like UI without needing to actually cause errors.
|
2021-09-22 18:49:24 +00:00
|
|
|
|
|
|
|
|
2021-09-16 22:41:29 +00:00
|
|
|
class DummyAlertProvider(AlertProvider):
|
|
|
|
|
2021-09-22 18:49:24 +00:00
|
|
|
def get_alerts(self):
|
|
|
|
if BETA:
|
|
|
|
return [Alert(
|
|
|
|
{
|
|
|
|
"start_time": -1,
|
|
|
|
"id": "test",
|
|
|
|
"title": "BAPSicle is in Debug Mode",
|
|
|
|
"description": "This is a test alert. It will not appear on production builds.",
|
|
|
|
"module": "Test",
|
|
|
|
"severity": WARNING
|
|
|
|
}
|
|
|
|
)]
|