mirror of
https://github.com/caronc/apprise.git
synced 2025-02-17 18:51:05 +01:00
Instead of needing to individually disable throttling on a per-plugin basis, this fixture takes care of all notifiers in `NOTIFY_MODULE_MAP` automatically. With `autouse=True`, there is no need to activate it manually.
23 lines
447 B
Python
23 lines
447 B
Python
import types
|
|
import typing as t
|
|
|
|
|
|
class NotifyType:
|
|
INFO: NotifyType
|
|
SUCCESS: NotifyType
|
|
WARNING: NotifyType
|
|
FAILURE: NotifyType
|
|
|
|
class NotifyFormat:
|
|
TEXT: NotifyFormat
|
|
HTML: NotifyFormat
|
|
MARKDOWN: NotifyFormat
|
|
|
|
class ContentLocation:
|
|
LOCAL: ContentLocation
|
|
HOSTED: ContentLocation
|
|
INACCESSIBLE: ContentLocation
|
|
|
|
|
|
NOTIFY_MODULE_MAP: t.Dict[str, t.Dict[str, t.Union[t.Type["NotifyBase"], types.ModuleType]]]
|