mirror of
https://github.com/ZhuLinsen/daily_stock_analysis.git
synced 2026-10-06 15:13:28 +08:00
14 lines
551 B
Python
14 lines
551 B
Python
# -*- coding: utf-8 -*-
|
|
"""Tests for notification route channel parsing."""
|
|
|
|
from src.notification_routing import ROUTABLE_NOTIFICATION_CHANNELS, split_notification_route_channels
|
|
|
|
|
|
def test_ntfy_and_gotify_are_routable_notification_channels() -> None:
|
|
valid, invalid = split_notification_route_channels(["wechat", "ntfy", "gotify", "not-a-channel"])
|
|
|
|
assert "ntfy" in ROUTABLE_NOTIFICATION_CHANNELS
|
|
assert "gotify" in ROUTABLE_NOTIFICATION_CHANNELS
|
|
assert valid == ["wechat", "ntfy", "gotify"]
|
|
assert invalid == ["not-a-channel"]
|