aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortheguymadmax <theguymadmax@proton.me>2026-08-05 13:18:08 -0400
committertheguymadmax <theguymadmax@proton.me>2026-08-05 14:02:28 -0400
commitf49a501f71b22b02826c13fad2fc4ebaf82ee3ec (patch)
tree661e717caa7853928e29ec9463f6e574e566d384 /tests
parentf6ca06e9bfa890f8ab31afd3705f5df2c58ed510 (diff)
Revert "Refresh Live TV channel icons on every guide update."
This reverts commit 372c1681d8272c6fa8f120a132bc40351067fb10.
Diffstat (limited to 'tests')
-rw-r--r--tests/Jellyfin.LiveTv.Tests/LiveTvChannelImageHelperTests.cs51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/Jellyfin.LiveTv.Tests/LiveTvChannelImageHelperTests.cs b/tests/Jellyfin.LiveTv.Tests/LiveTvChannelImageHelperTests.cs
deleted file mode 100644
index f44cb88834..0000000000
--- a/tests/Jellyfin.LiveTv.Tests/LiveTvChannelImageHelperTests.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using Jellyfin.LiveTv;
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Controller.LiveTv;
-using MediaBrowser.Model.Entities;
-using Xunit;
-
-namespace Jellyfin.LiveTv.Tests;
-
-public class LiveTvChannelImageHelperTests
-{
- [Fact]
- public void UpdateChannelImageIfNeeded_NoSource_DoesNotUpdate()
- {
- var channel = new LiveTvChannel { Name = "Test Channel" };
-
- var updated = LiveTvChannelImageHelper.UpdateChannelImageIfNeeded(channel, null, null);
-
- Assert.False(updated);
- Assert.False(channel.HasImage(ImageType.Primary));
- }
-
- [Fact]
- public void UpdateChannelImageIfNeeded_WithUrl_AppliesUrl()
- {
- var channel = new LiveTvChannel { Name = "Test Channel" };
-
- var updated = LiveTvChannelImageHelper.UpdateChannelImageIfNeeded(
- channel,
- null,
- "https://example.com/icon.png");
-
- Assert.True(updated);
- Assert.True(channel.HasImage(ImageType.Primary));
- Assert.Equal("https://example.com/icon.png", channel.GetImagePath(ImageType.Primary));
- }
-
- [Fact]
- public void UpdateChannelImageIfNeeded_SameUrl_StillUpdates()
- {
- var channel = new LiveTvChannel { Name = "Test Channel" };
- LiveTvChannelImageHelper.UpdateChannelImageIfNeeded(channel, null, "https://example.com/icon.png");
-
- var updated = LiveTvChannelImageHelper.UpdateChannelImageIfNeeded(
- channel,
- null,
- "https://example.com/icon.png");
-
- Assert.True(updated);
- Assert.Equal("https://example.com/icon.png", channel.GetImagePath(ImageType.Primary));
- }
-}