tests: add integration test for audio extractor

This commit is contained in:
Stevan Freeborn
2025-07-28 17:59:27 -05:00
parent 30f2032cef
commit 5ee040f2d0
7 changed files with 59 additions and 0 deletions
@@ -0,0 +1,24 @@
namespace StreamShorts.Library.Tests.Data;
internal static class TestData
{
private const string TestVideoFile = "video.mp4";
private const string ExtractedAudioFile = "extracted_audio.mp3";
public static FileStream GetTestVideo()
{
var filePath = GetTestFilePath(TestVideoFile);
return File.OpenRead(filePath);
}
public static FileStream GetExtractedAudio()
{
var filePath = GetTestFilePath(ExtractedAudioFile);
return File.OpenRead(filePath);
}
private static string GetTestFilePath(string fileName)
{
return Path.Combine(Directory.GetCurrentDirectory(), "Data", "Files", fileName);
}
}