Skip to content

Commit

Permalink
fix: boxcar removed and additional notification added
Browse files Browse the repository at this point in the history
  • Loading branch information
marksie1988 committed May 31, 2024
1 parent 7a1a605 commit e5f0e17
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
16 changes: 13 additions & 3 deletions pyarr/models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

#: Notification schema implementations
PyarrNotificationSchema = Literal[
"Boxcar",
"Apprise",
"CustomScript",
"Discord",
"Email",
Expand All @@ -80,13 +80,16 @@
"Join",
"Xbmc",
"MailGun",
"PlexHomeTheater",
"PlexClient",
"Notifiarr",
"Ntfy",
"PlexServer",
"Prowl",
"PushBullet",
"Pushcut",
"Pushover",
"SendGrid",
"Signal",
"Simplepush",
"Slack",
"SynologyIndexer",
"Telegram",
Expand All @@ -102,6 +105,7 @@
"TorrentDownloadStation",
"UsenetDownloadStation",
"Flood",
"TorrentFreeboxDownload",
"Hadouken",
"Nzbget",
"NzbVortex",
Expand All @@ -118,7 +122,13 @@

#: Import List schema implementations
PyarrImportListSchema = Literal[
"AniListImport",
"CustomImport",
"ImdbListImport",
"MyAnimeListImport",
"PlexImport",
"PlexRssImport",
"SimklUserImport",
"SonarrImport",
"TraktListImport",
"TraktPopularImport",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lidarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def test_get_notification_schema(lidarr_client: LidarrAPI):
data = lidarr_client.get_notification_schema()
assert isinstance(data, list)

data = lidarr_client.get_notification_schema(implementation="Boxcar")
data = lidarr_client.get_notification_schema(implementation="Apprise")
assert isinstance(data, list)

with contextlib.suppress(PyarrRecordNotFound):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def test_get_notification_schema(radarr_client: RadarrAPI):
data = radarr_client.get_notification_schema()
assert isinstance(data, list)

data = radarr_client.get_notification_schema(implementation="Boxcar")
data = radarr_client.get_notification_schema(implementation="Apprise")
assert isinstance(data, list)

with contextlib.suppress(PyarrRecordNotFound):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def test_get_notification_schema(sonarr_client: SonarrAPI):
data = sonarr_client.get_notification_schema()
assert isinstance(data, list)

data = sonarr_client.get_notification_schema(implementation="Boxcar")
data = sonarr_client.get_notification_schema(implementation="Apprise")
assert isinstance(data, list)

with contextlib.suppress(PyarrRecordNotFound):
Expand Down

0 comments on commit e5f0e17

Please sign in to comment.