The Free Software Media System - Server Backend & API
Move LiveTv tests to separate project
Patrick Barron7eba162879f6
diff --git a/Emby.Server.Implementations/Properties/AssemblyInfo.cs b/Emby.Server.Implementations/Properties/AssemblyInfo.csindex 41c396ac1d..fb7377b1df 100644--- a/Emby.Server.Implementations/Properties/AssemblyInfo.cs+++ b/Emby.Server.Implementations/Properties/AssemblyInfo.cs@@ -17,6 +17,7 @@ using System.Runtime.InteropServices;[assembly: NeutralResourcesLanguage("en")][assembly: InternalsVisibleTo("Jellyfin.Server.Implementations.Tests")][assembly: InternalsVisibleTo("Emby.Server.Implementations.Fuzz")]+[assembly: InternalsVisibleTo("Jellyfin.LiveTv.Tests")]// Setting ComVisible to false makes the types in this assembly not visible// to COM components. If you need to access a type in this assembly fromdiff --git a/Jellyfin.sln b/Jellyfin.slnindex 4385ac2417..31e302d944 100644--- a/Jellyfin.sln+++ b/Jellyfin.sln@@ -87,6 +87,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.MediaEncoding.Hls.EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.MediaEncoding.Keyframes.Tests", "tests\Jellyfin.MediaEncoding.Keyframes.Tests\Jellyfin.MediaEncoding.Keyframes.Tests.csproj", "{24960660-DE6C-47BF-AEEF-CEE8F19FE6C2}"EndProject+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.LiveTv.Tests", "tests\Jellyfin.LiveTv.Tests\Jellyfin.LiveTv.Tests.csproj", "{C4F71272-C6BE-4C30-BE0D-4E6ED651D6D3}"+EndProjectGlobalGlobalSection(SolutionConfigurationPlatforms) = preSolutionDebug|Any CPU = Debug|Any CPU@@ -233,6 +235,10 @@ Global{24960660-DE6C-47BF-AEEF-CEE8F19FE6C2}.Debug|Any CPU.Build.0 = Debug|Any CPU{24960660-DE6C-47BF-AEEF-CEE8F19FE6C2}.Release|Any CPU.ActiveCfg = Release|Any CPU{24960660-DE6C-47BF-AEEF-CEE8F19FE6C2}.Release|Any CPU.Build.0 = Release|Any CPU+ {C4F71272-C6BE-4C30-BE0D-4E6ED651D6D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {C4F71272-C6BE-4C30-BE0D-4E6ED651D6D3}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {C4F71272-C6BE-4C30-BE0D-4E6ED651D6D3}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {C4F71272-C6BE-4C30-BE0D-4E6ED651D6D3}.Release|Any CPU.Build.0 = Release|Any CPUEndGlobalSectionGlobalSection(SolutionProperties) = preSolutionHideSolutionNode = FALSE@@ -259,6 +265,7 @@ Global{08FFF49B-F175-4807-A2B5-73B0EBD9F716} = {C9F0AB5D-F4D7-40C8-A353-3305C86D6D4C}{154872D9-6C12-4007-96E3-8F70A58386CE} = {C9F0AB5D-F4D7-40C8-A353-3305C86D6D4C}{0A3FCC4D-C714-4072-B90F-E374A15F9FF9} = {C9F0AB5D-F4D7-40C8-A353-3305C86D6D4C}+ {C4F71272-C6BE-4C30-BE0D-4E6ED651D6D3} = {FBBB5129-006E-4AD7-BAD5-8B7CA1D10ED6}EndGlobalSectionGlobalSection(ExtensibilityGlobals) = postSolutionSolutionGuid = {3448830C-EBDC-426C-85CD-7BBB9651A7FE}diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs b/tests/Jellyfin.LiveTv.Tests/HdHomerunHostTests.cssimilarity index 99%rename from tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.csrename to tests/Jellyfin.LiveTv.Tests/HdHomerunHostTests.csindex 13ac3ddb0f..bc4b2da5b9 100644--- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs+++ b/tests/Jellyfin.LiveTv.Tests/HdHomerunHostTests.cs@@ -12,7 +12,7 @@ using Moq;using Moq.Protected;using Xunit;-namespace Jellyfin.Server.Implementations.Tests.LiveTv+namespace Jellyfin.LiveTv.Tests{public class HdHomerunHostTests{diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunManagerTests.cs b/tests/Jellyfin.LiveTv.Tests/HdHomerunManagerTests.cssimilarity index 99%rename from tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunManagerTests.csrename to tests/Jellyfin.LiveTv.Tests/HdHomerunManagerTests.csindex fd499d9cf9..fcebc0ff75 100644--- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunManagerTests.cs+++ b/tests/Jellyfin.LiveTv.Tests/HdHomerunManagerTests.cs@@ -3,7 +3,7 @@ using System.Text;using Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun;using Xunit;-namespace Jellyfin.Server.Implementations.Tests.LiveTv+namespace Jellyfin.LiveTv.Tests{public class HdHomerunManagerTests{diff --git a/tests/Jellyfin.LiveTv.Tests/Jellyfin.LiveTv.Tests.csproj b/tests/Jellyfin.LiveTv.Tests/Jellyfin.LiveTv.Tests.csprojnew file mode 100644index 0000000000..de448bada6--- /dev/null+++ b/tests/Jellyfin.LiveTv.Tests/Jellyfin.LiveTv.Tests.csproj@@ -0,0 +1,29 @@+<Project Sdk="Microsoft.NET.Sdk">+ <PropertyGroup>+ <TargetFramework>net8.0</TargetFramework>+ </PropertyGroup>++ <ItemGroup>+ <None Include="Test Data\**\*.*">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None>+ </ItemGroup>++ <ItemGroup>+ <PackageReference Include="AutoFixture" />+ <PackageReference Include="AutoFixture.AutoMoq" />+ <PackageReference Include="Microsoft.NET.Test.Sdk" />+ <PackageReference Include="Moq" />+ <PackageReference Include="xunit" />+ <PackageReference Include="xunit.runner.visualstudio">+ <PrivateAssets>all</PrivateAssets>+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>+ </PackageReference>+ <PackageReference Include="Xunit.SkippableFact" />+ <PackageReference Include="coverlet.collector" />+ </ItemGroup>++ <ItemGroup>+ <ProjectReference Include="..\..\Emby.Server.Implementations\Emby.Server.Implementations.csproj" />+ </ItemGroup>+</Project>diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.cs b/tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.cssimilarity index 98%rename from tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.csrename to tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.csindex 92b4178fdb..71d135735d 100644--- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/Listings/XmlTvListingsProviderTests.cs+++ b/tests/Jellyfin.LiveTv.Tests/Listings/XmlTvListingsProviderTests.cs@@ -12,7 +12,7 @@ using Moq;using Moq.Protected;using Xunit;-namespace Jellyfin.Server.Implementations.Tests.LiveTv.Listings;+namespace Jellyfin.LiveTv.Tests.Listings;public class XmlTvListingsProviderTests{diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/RecordingHelperTests.cs b/tests/Jellyfin.LiveTv.Tests/RecordingHelperTests.cssimilarity index 98%rename from tests/Jellyfin.Server.Implementations.Tests/LiveTv/RecordingHelperTests.csrename to tests/Jellyfin.LiveTv.Tests/RecordingHelperTests.csindex f107b1ef97..a5941e7f08 100644--- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/RecordingHelperTests.cs+++ b/tests/Jellyfin.LiveTv.Tests/RecordingHelperTests.cs@@ -3,7 +3,7 @@ using Emby.Server.Implementations.LiveTv.EmbyTV;using MediaBrowser.Controller.LiveTv;using Xunit;-namespace Jellyfin.Server.Implementations.Tests.LiveTv+namespace Jellyfin.LiveTv.Tests{public static class RecordingHelperTests{diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/SchedulesDirect/SchedulesDirectDeserializeTests.cs b/tests/Jellyfin.LiveTv.Tests/SchedulesDirect/SchedulesDirectDeserializeTests.cssimilarity index 99%rename from tests/Jellyfin.Server.Implementations.Tests/LiveTv/SchedulesDirect/SchedulesDirectDeserializeTests.csrename to tests/Jellyfin.LiveTv.Tests/SchedulesDirect/SchedulesDirectDeserializeTests.csindex d4f28f327f..6b1f4d4161 100644--- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/SchedulesDirect/SchedulesDirectDeserializeTests.cs+++ b/tests/Jellyfin.LiveTv.Tests/SchedulesDirect/SchedulesDirectDeserializeTests.cs@@ -6,7 +6,7 @@ using Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos;using Jellyfin.Extensions.Json;using Xunit;-namespace Jellyfin.Server.Implementations.Tests.LiveTv.SchedulesDirect+namespace Jellyfin.LiveTv.Tests.SchedulesDirect{public class SchedulesDirectDeserializeTests{diff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/10.10.10.100/discover.json b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/10.10.10.100/discover.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/10.10.10.100/discover.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/10.10.10.100/discover.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/10.10.10.100/lineup.json b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/10.10.10.100/lineup.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/10.10.10.100/lineup.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/10.10.10.100/lineup.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/192.168.1.182/discover.json b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/192.168.1.182/discover.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/192.168.1.182/discover.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/192.168.1.182/discover.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/192.168.1.182/lineup.json b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/192.168.1.182/lineup.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/192.168.1.182/lineup.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/192.168.1.182/lineup.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xml b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xmlsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xmlrename to tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/emptycategory.xmldiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xml b/tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xmlsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xmlrename to tests/Jellyfin.LiveTv.Tests/Test Data/LiveTv/Listings/XmlTv/notitle.xmldiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/headends_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/headends_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/headends_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/headends_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/lineup_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/lineup_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/lineup_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/lineup_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/lineups_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/lineups_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/lineups_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/lineups_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/metadata_programs_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/metadata_programs_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/metadata_programs_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/metadata_programs_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/programs_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/programs_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/programs_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/programs_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/schedules_request.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/schedules_request.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/schedules_request.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/schedules_request.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/schedules_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/schedules_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/schedules_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/schedules_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/token_live_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/token_live_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/token_live_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/token_live_response.jsondiff --git a/tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/token_offline_response.json b/tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/token_offline_response.jsonsimilarity index 100%rename from tests/Jellyfin.Server.Implementations.Tests/Test Data/SchedulesDirect/token_offline_response.jsonrename to tests/Jellyfin.LiveTv.Tests/Test Data/SchedulesDirect/token_offline_response.json