Update configuration and enhance media processing: add stream token TTL and timeout settings in .env.example, improve error handling in media endpoints, and refactor command handlers for asynchronous operations. Update documentation to reflect current application state and features.
tests / backend-tests (push) Successful in 2m27s
build / backend (push) Successful in 2m19s
build / frontend (push) Successful in 53s

This commit is contained in:
Leonid Pershin committed 2026-07-25 23:14:55 +03:00
1 parent a261e261f0
commit 6c18a9da79
42 files changed
+387 -98

No files matched your search

@@ -268,7 +268,7 @@ public class QueryHandlersTests
);
Assert.True(removed.IsSuccess);
}
storage.Received(1).DeleteTemplate(templateId);
await storage.Received(1).DeleteTemplateAsync(templateId, Arg.Any<CancellationToken>());
// дефолтный блок удалить нельзя
await using (var db = fixture.New())
@@ -81,6 +81,16 @@ public class ShowTests
Assert.True(series.CanAddEpisode);
}
[Fact]
public void AddEpisode_SecondForSingle_Throws()
{
var single = Show.Create("Movie", ShowKind.Single);
single.AddEpisode(Guid.NewGuid());
Assert.Throws<InvalidOperationException>(() => single.AddEpisode(Guid.NewGuid()));
Assert.Single(single.Episodes);
}
[Fact]
public void ApplyMetadata_SetsProviderYearPoster_KeepsDescriptionIfBlank()
{