Tests: xUnit project with HAR fixtures (50 tests); fix relative delivery/HLS URLs resolving to file:// on Linux
All checks were successful
release / build-release (push) Successful in 1m19s

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 09:42:50 +01:00
parent 9e33a343ab
commit 2a883c02de
21 changed files with 2358 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System.IO;
using System.Text.Json;
using Jellyfin.Plugin.Floatplane.Api.Models;
namespace Jellyfin.Plugin.Floatplane.Tests;
internal static class Fixture
{
public static string Path(string name) => System.IO.Path.Combine(System.AppContext.BaseDirectory, "Fixtures", name);
public static string Text(string name) => File.ReadAllText(Path(name));
public static T Json<T>(string name) => JsonSerializer.Deserialize<T>(Text(name), FloatplaneJson.Options)!;
}