[IMP] web_notify: allow passing custom parameters to notifications

This commit is contained in:
SilvioC2C
2024-02-16 12:58:43 +01:00
committed by trisdoan
parent 8188e6b7e4
commit d58da31b8b
2 changed files with 17 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"action": None,
"params": {},
}
self.env.user.notify_success(**test_msg)
news = bus_bus.search(domain) - existing
@@ -36,6 +37,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"action": None,
"params": {},
}
self.env.user.notify_danger(**test_msg)
news = bus_bus.search(domain) - existing
@@ -53,6 +55,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"action": None,
"params": {},
}
self.env.user.notify_warning(**test_msg)
news = bus_bus.search(domain) - existing
@@ -70,6 +73,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"action": None,
"params": {},
}
self.env.user.notify_info(**test_msg)
news = bus_bus.search(domain) - existing
@@ -87,6 +91,7 @@ class TestResUsers(common.TransactionCase):
"title": "title",
"sticky": True,
"action": None,
"params": {},
}
self.env.user.notify_default(**test_msg)
news = bus_bus.search(domain) - existing